[Pythonmac-SIG] gensuitemodule.py application selection window
does not take focus
Ronald Oussoren
oussoren at cistron.nl
Sun Sep 28 02:46:04 EDT 2003
On 27 sep 2003, at 6:28, Donovan Preston wrote:
>
> On Sep 26, 2003, at 8:30 PM, Matt Duignan wrote:
>
> <snip>
>
>> When I run:
>>
>> python
>> /Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-
>> mac/gensuitemodule.py
>>
>> the "Choose a File" dialogue opens, for "Select
>> scriptable application". The problem is that this
>> window seems to refuse to take focus
>
> <snip>
>
> You need to use pythonw instead of python.
that is correct.
> pythonw includes the glue required to send and receive AppleEvents
> from Python.
this isn't ;-). the actual executable is the same as for python, but
the pythonw interpreter is located inside an .app bundle. pythonw
starts that interpreter with an absolute path name. This is necessary
to make it possible to be a first-class citizen w.r.t. windowing due to
some weirdness in OSX.
Ronald
More information about the Pythonmac-SIG
mailing list