When I updated my app, I switched from the deprecated wx.PySimpleApp, which had the right default behavior on Mac, to wx.App, which apparently doesn't. (The docs say "You should normally exit the main loop (and the application) by deleting the top window." What's "normal" for a Windows user would baffle my Mac users, and vice versa—but never mind.) I see I can call wxGetApp().ExitMainLoop. But in response to what? What is the event sent by the Mac keyboard or menu Quit command? Binding to wx.EVT_CLOSE doesn't seem to do anything.
On Tue, May 28, 2013 at 1:07 AM, Chris Barker - NOAA Federal < chris.bar...@noaa.gov> wrote: > On Mon, May 27, 2013 at 10:54 AM, Charles Hartman <co...@conncoll.edu> > wrote: > > You have pointed me to something bizarre. This is on a Mac. On Mac, > though > > quitting the app closes all top-level windows, closing all top-level > windos > > doesn't quit the app. > > yes, that's the Mac convension, but teh wx cnvension is for an app to > quit when all the top-level windows are closed. If you actually want > the "proper" mac behaviour, you need to create a dummy Frame to keep > the App alive (and give it a menu bar...) > > -Chris > > > -- > > Christopher Barker, Ph.D. > Oceanographer > > Emergency Response Division > NOAA/NOS/OR&R (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception > > chris.bar...@noaa.gov > -- Charles O. Hartman Poet in Residence Lucy Marsh Haskell '19 Professor of Literatures in English oak.conncoll.edu/cohar
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG