From: Robin Dunn Date: Thu, 28 Oct 2004 20:31:34 +0000 (+0000) Subject: Use the wx.App.SetMac* static methods instead of the global functions X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/05871e13a06350ef3f7da573fc62beaa195329c4 Use the wx.App.SetMac* static methods instead of the global functions git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index a0f0f7645b..8d46fc7e9b 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -1088,7 +1088,7 @@ class wxPythonDemo(wx.Frame): item = menu.Append(-1, 'E&xit\tAlt-X', 'Get the heck outta here!') self.Bind(wx.EVT_MENU, self.OnFileExit, item) - wx.App_SetMacExitMenuItemId(item.GetId()) + wx.App.SetMacExitMenuItemId(item.GetId()) self.mainmenu.Append(menu, '&File') # Make a Demo menu @@ -1128,7 +1128,7 @@ class wxPythonDemo(wx.Frame): 'An interactive interpreter window with the demo app and frame objects in the namesapce') menu.AppendSeparator() helpItem = menu.Append(-1, '&About\tCtrl-H', 'wxPython RULES!!!') - wx.App_SetMacAboutMenuItemId(helpItem.GetId()) + wx.App.SetMacAboutMenuItemId(helpItem.GetId()) self.Bind(wx.EVT_MENU, self.OnOpenShellWindow, shellItem) self.Bind(wx.EVT_MENU, self.OnHelpAbout, helpItem)