Commit 004c678f8fb2698462663be540cc0bf638bfef5e
1 parent
8dfc7aa2
Exists in
master
and in
67 other branches
ENH: Added close and help in the mac os x, thank's Bruno Lara Bottazzini
Showing
1 changed file
with
3 additions
and
11 deletions
Show diff stats
invesalius/gui/frame.py
| @@ -492,17 +492,9 @@ class MenuBar(wx.MenuBar): | @@ -492,17 +492,9 @@ class MenuBar(wx.MenuBar): | ||
| 492 | help_menu.Append(const.ID_ABOUT, _("About...")) | 492 | help_menu.Append(const.ID_ABOUT, _("About...")) |
| 493 | #help_menu.Append(107, "Check For Updates Now...") | 493 | #help_menu.Append(107, "Check For Updates Now...") |
| 494 | 494 | ||
| 495 | - # TODO: Check what is necessary under MacOS to show | ||
| 496 | - # InVesalius and not Python | ||
| 497 | - # first menu item... Didn't manage to solve it up to now, | ||
| 498 | - # the 3 lines bellow are a frustated test, based on wxPython | ||
| 499 | - # Demo | ||
| 500 | - | ||
| 501 | - # TODO: Google about this | ||
| 502 | - #test_menu = wx.Menu() | ||
| 503 | - #item = test_menu.Append(-1, | ||
| 504 | - # &About InVesalius','InVesalius') | ||
| 505 | - #wx.App.SetMacAboutMenuItemId(item.GetId()) | 495 | + if platform.system() == 'Darwin': |
| 496 | + wx.App.SetMacAboutMenuItemId(const.ID_ABOUT) | ||
| 497 | + wx.App.SetMacExitMenuItemId(const.ID_EXIT) | ||
| 506 | 498 | ||
| 507 | # Add all menus to menubar | 499 | # Add all menus to menubar |
| 508 | self.Append(file_menu, _("File")) | 500 | self.Append(file_menu, _("File")) |