There are a number of things that can be done in a wxPython application in order to help it fit in better when running on a Macintosh OS X system. There are a number of things that users expect from an application on OS X, and this recipe shows some of the things to do in order to make sure your application runs and looks good on OS X as well as on other platforms. This will include the proper positioning of standard menus and menu items, main window behavior, and how to enable some Macintosh-specific functionality.
As an example of some of the things to take into consideration, we will create a simple application that shows how to make an application conform to Macintosh UI standards:
import wx import sys class OSXApp(wx.App): def OnInit(self): # Enable native spell checking and right # click menu for Mac TextCtrl's if wx.Platform == '__WXMAC__': spellcheck = "mac.textcontrol-use-spell-checker" wx.SystemOptions...