Commit 5f0b9064f67d66149603c182cc7fc86e4ba9c9a5
1 parent
a3743384
Exists in
master
and in
68 other branches
FIX: Cut plane enable in menu in linux
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
invesalius/gui/default_viewers.py
@@ -373,6 +373,11 @@ class VolumeToolPanel(wx.Panel): | @@ -373,6 +373,11 @@ class VolumeToolPanel(wx.Panel): | ||
373 | menu.Enable(RAYCASTING_TOOLS, 0) | 373 | menu.Enable(RAYCASTING_TOOLS, 0) |
374 | 374 | ||
375 | self.menu_raycasting = menu | 375 | self.menu_raycasting = menu |
376 | + # In MacOS X and Windows, binding parent menu is enough. But | ||
377 | + # not in GNU Linux - in the last it is necessary to bind the | ||
378 | + # submenu | ||
379 | + if sys.platform == 'linux2': | ||
380 | + submenu.Bind(wx.EVT_MENU, self.OnMenuRaycasting) | ||
376 | menu.Bind(wx.EVT_MENU, self.OnMenuRaycasting) | 381 | menu.Bind(wx.EVT_MENU, self.OnMenuRaycasting) |
377 | 382 | ||
378 | # VOLUME VIEW ANGLE BUTTON | 383 | # VOLUME VIEW ANGLE BUTTON |