Skip to content

Commit

Permalink
Disabling swapping and flipping features
Browse files Browse the repository at this point in the history
  • Loading branch information
tfmoraes committed Apr 9, 2014
1 parent 2f7aeff commit 2b8afea
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions invesalius/gui/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,21 +532,21 @@ def __init_items(self):

############################### EDIT###############################
# Flip
flip_menu = wx.Menu()
app = flip_menu.Append
app(const.ID_FLIP_X, _("R <-> L"))
app(const.ID_FLIP_Y, _("A <-> P"))
app(const.ID_FLIP_Z, _("T <-> B"))

swap_axes_menu = wx.Menu()
app = swap_axes_menu.Append
app(const.ID_SWAP_XY, _("R-L <-> A-P"))
app(const.ID_SWAP_XZ, _("R-L <-> T-B"))
app(const.ID_SWAP_YZ, _("A-P <-> T-B"))
#flip_menu = wx.Menu()
#app = flip_menu.Append
#app(const.ID_FLIP_X, _("R <-> L"))
#app(const.ID_FLIP_Y, _("A <-> P"))
#app(const.ID_FLIP_Z, _("T <-> B"))

#swap_axes_menu = wx.Menu()
#app = swap_axes_menu.Append
#app(const.ID_SWAP_XY, _("R-L <-> A-P"))
#app(const.ID_SWAP_XZ, _("R-L <-> T-B"))
#app(const.ID_SWAP_YZ, _("A-P <-> T-B"))

file_edit = wx.Menu()
file_edit.AppendMenu(wx.NewId(), _('Flip'), flip_menu)
file_edit.AppendMenu(wx.NewId(), _('Swap axes'), swap_axes_menu)
#file_edit.AppendMenu(wx.NewId(), _('Flip'), flip_menu)
#file_edit.AppendMenu(wx.NewId(), _('Swap axes'), swap_axes_menu)


d = const.ICON_DIR
Expand Down

0 comments on commit 2b8afea

Please sign in to comment.