From 004c678f8fb2698462663be540cc0bf638bfef5e Mon Sep 17 00:00:00 2001 From: paulojamorim Date: Fri, 27 May 2011 14:06:45 +0000 Subject: [PATCH] ENH: Added close and help in the mac os x, thank's Bruno Lara Bottazzini --- invesalius/gui/frame.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/invesalius/gui/frame.py b/invesalius/gui/frame.py index 526cee1..a716825 100755 --- a/invesalius/gui/frame.py +++ b/invesalius/gui/frame.py @@ -492,17 +492,9 @@ class MenuBar(wx.MenuBar): help_menu.Append(const.ID_ABOUT, _("About...")) #help_menu.Append(107, "Check For Updates Now...") - # TODO: Check what is necessary under MacOS to show - # InVesalius and not Python - # first menu item... Didn't manage to solve it up to now, - # the 3 lines bellow are a frustated test, based on wxPython - # Demo - - # TODO: Google about this - #test_menu = wx.Menu() - #item = test_menu.Append(-1, - # &About InVesalius','InVesalius') - #wx.App.SetMacAboutMenuItemId(item.GetId()) + if platform.system() == 'Darwin': + wx.App.SetMacAboutMenuItemId(const.ID_ABOUT) + wx.App.SetMacExitMenuItemId(const.ID_EXIT) # Add all menus to menubar self.Append(file_menu, _("File")) -- libgit2 0.21.2