PDA

View Full Version : Carbon AGL Python Extension Window Problem


krex505
2006.08.20, 11:17 PM
I am trying to write a c Python extension that will open a Carbon AGL window and pass Carbon mouse (tablet) events back to my Python script. I have set up a reference to a nib file and created a window. However, the window shows up in the background and is not responsive other than to closing and minimizing. It will not move to the foreground when clicked on. How can I fix the window?

Thanks,

-K

OneSadCookie
2006.08.21, 12:37 AM
You need to have a proper application bundle, which might be problematic for a python script. Using py2app from the PyObjC project might work, or if there's a "pythonw", running your script with that might work.

krex505
2006.08.21, 01:59 AM
Thank you. pythonw seems to do the trick.