Am 2008-11-30 um 01:13 schrieb Ed Leafe: >> OK, I did some reading on what MacOpenFile is, and it's a bound >> method of wx.App, so of course you can't simply assign it like that. >> What I'll have to do is write some code to pass the wx.App event to a >> dApp handler. This might take a few minutes, but I'll work on it now. >> In the meantime, what other wx.App event handlers are there like this >> that you know of? I might as well wrap them all. > > This is bizarre. I've found documentation that says that as of April, > 2004 (version 2.5.1.2), wxPython has 4 Mac-specific methods in its > wx.App class: > > "AppleEvents can be handled by overriding wx.App methods MacOpenFile, > MacPrintFile, MacNewFile, and MacReopenApp." > However, I'm running wxPython 2.8.4.0 on a Mac, and these methods > don't exist. If I try to call them in a plain wx application (no > Dabo), I get AttributeErrors. > > Can you point me to some definitive documetation on these methods?
Sorry, I don't know more than the wx docs told you. I found also that it's rather complicated to handle other Apple Events besides that four (looks like the usual problem of interlocking different event loops). But these methods aren't usually there, there's no interface/ implementation logic or the like in wx. As far as I understand, they're used, if you provide them. I'd suggest to implement those four methods in dabo's wx-uiApp and provide a hook in dApp - probably in a unified way, that works also with Windows and GTK. (If Windows or GTK provide something similar at all.) Thank you for your efforts! Greetlings from Lake Constance! Hraban --- http://www.fiee.net https://www.cacert.org (I'm an assurer) _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]
