Commit ea067c271762bca6a3de4f9dca336afc0d65699d
1 parent
d5007efd
Exists in
master
and in
10 other branches
Initializing invesalius with flip and swap menu disabled
Showing
1 changed file
with
13 additions
and
7 deletions
Show diff stats
invesalius/gui/frame.py
| ... | ... | @@ -655,7 +655,13 @@ class MenuBar(wx.MenuBar): |
| 655 | 655 | const.ID_FILL_HOLE_AUTO, |
| 656 | 656 | const.ID_REMOVE_MASK_PART, |
| 657 | 657 | const.ID_SELECT_MASK_PART, |
| 658 | - const.ID_FLOODFILL_SEGMENTATION,] | |
| 658 | + const.ID_FLOODFILL_SEGMENTATION, | |
| 659 | + const.ID_FLIP_X, | |
| 660 | + const.ID_FLIP_Y, | |
| 661 | + const.ID_FLIP_Z, | |
| 662 | + const.ID_SWAP_XY, | |
| 663 | + const.ID_SWAP_XZ, | |
| 664 | + const.ID_SWAP_YZ,] | |
| 659 | 665 | self.__init_items() |
| 660 | 666 | self.__bind_events() |
| 661 | 667 | |
| ... | ... | @@ -783,14 +789,14 @@ class MenuBar(wx.MenuBar): |
| 783 | 789 | |
| 784 | 790 | # Flip |
| 785 | 791 | flip_menu = wx.Menu() |
| 786 | - flip_menu.Append(const.ID_FLIP_X, _("Right - Left")) | |
| 787 | - flip_menu.Append(const.ID_FLIP_Y, _("Anterior - Posterior")) | |
| 788 | - flip_menu.Append(const.ID_FLIP_Z, _("Top - Bottom")) | |
| 792 | + flip_menu.Append(const.ID_FLIP_X, _("Right - Left")).Enable(False) | |
| 793 | + flip_menu.Append(const.ID_FLIP_Y, _("Anterior - Posterior")).Enable(False) | |
| 794 | + flip_menu.Append(const.ID_FLIP_Z, _("Top - Bottom")).Enable(False) | |
| 789 | 795 | |
| 790 | 796 | swap_axes_menu = wx.Menu() |
| 791 | - swap_axes_menu.Append(const.ID_SWAP_XY, _("From Right-Left to Anterior-Posterior")) | |
| 792 | - swap_axes_menu.Append(const.ID_SWAP_XZ, _("From Right-Left to Top-Bottom")) | |
| 793 | - swap_axes_menu.Append(const.ID_SWAP_YZ, _("From Anterior-Posterior to Top-Bottom")) | |
| 797 | + swap_axes_menu.Append(const.ID_SWAP_XY, _("From Right-Left to Anterior-Posterior")).Enable(False) | |
| 798 | + swap_axes_menu.Append(const.ID_SWAP_XZ, _("From Right-Left to Top-Bottom")).Enable(False) | |
| 799 | + swap_axes_menu.Append(const.ID_SWAP_YZ, _("From Anterior-Posterior to Top-Bottom")).Enable(False) | |
| 794 | 800 | |
| 795 | 801 | image_menu.AppendMenu(wx.NewId(), _('Flip'), flip_menu) |
| 796 | 802 | image_menu.AppendMenu(wx.NewId(), _('Swap axes'), swap_axes_menu) | ... | ... |