Hi All,
I remember reading somewhere that left clicking on a MacOSX dock icon wasn’t enabled in wxPython, and indeed it doesn’t work. However, I can’t find that description of why it didn’t work.
Is there any reason why I wouldn’t be able to implement it using the Apple events, i.e. ‘reopen application’ (http://developer.apple.com/documentation/AppleScript/Conceptual/AppleEvents/responding_aepg/chapter_6_section_4.html) and the techniques described here (http://wiki.wxpython.org/Catching%20AppleEvents%20in%20wxMAC)?
Don’t want to spend time getting my head round Apple Events and implementing this if it is known to not work!
Thanks,
Tom
Thomas Woolway wrote:
I remember reading somewhere that left clicking on a MacOSX dock icon wasn't enabled in wxPython, and indeed it doesn't work.
What do you expect it to do?
You may get what you want by putting your app in a bundle with py2app, and following the suggestions on this page:
http://wiki.wxpython.org/Optimizing%20for%20Mac%20OS%20X
-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.Barker@noaa.gov
The normal behavior for left clicking on a dock icon is to launch the app (or bring it to the front if already running). That works fine for me. Did you mean right- (or control-) click?
Best,
- Joe
···
On Nov 12, 2008, at 10:37 AM, Thomas Woolway wrote:
I remember reading somewhere that left clicking on a MacOSX dock icon wasn't enabled in wxPython, and indeed it doesn't work.