It seems that setting argv_emulation=True in the py2app options causes
minimized windows to break in the resulting app.  When a window has been
minimized, it will never come back, and it won't respond to clicks in the
dock.  This is very confusing: I don't see why argv emulation should break
window behavior, but it seems to.

I'm using py2app with PyObjC, so I'm not sure which, if either, is at
fault.  My first guess would be py2app since it's a py2app option that
triggers the bug.

You can reproduce this with the PyObjC "creating your first application"
tutorial.  Just add this to the setup() call in setup.py:

options={'py2app': {'argv_emulation': 1}},

Now, build the app, run it from Finder, minimize the window, and try to
restore it; it shouldn't work.  However, if you run the binary
(dist/CurrencyConverter.app/Contents/MacOS/CurrencyConverter) directly,
minimizing WILL work.

Here are the relevant versions I'm using; all of them should be current:
 OS X 10.4.9
 Python 2.5
 PyObjC 1.4
 py2app 0.3.6

This bug isn't actually a problem for me now that I've figured out the
cause; I only had argv emulation enabled because my setup.py originally came
from an example.  But it was quite tricky to track down, so hopefully this
will save someone else's time down the road. :)

--
Gary
http://blog.extracheese.org
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to