equal
deleted
inserted
replaced
436 |
436 |
437 # If buttons are shown at left side or upper side of rect, positions |
437 # If buttons are shown at left side or upper side of rect, positions |
438 # will be set in reverse order |
438 # will be set in reverse order |
439 buttons = self.ContextualButtons[:] |
439 buttons = self.ContextualButtons[:] |
440 if direction in [wx.TOP, wx.LEFT]: |
440 if direction in [wx.TOP, wx.LEFT]: |
441 buttons.reverse() |
441 buttons.reverse() |
442 |
442 |
443 # Set contextual menu buttons position aside rect depending on |
443 # Set contextual menu buttons position aside rect depending on |
444 # direction given |
444 # direction given |
445 offset = 0 |
445 offset = 0 |
446 for button in buttons: |
446 for button in buttons: |