[Pythonmac-SIG] TCL is going to have loadable TK...
Bob Ippolito
bob at redivi.com
Tue Oct 5 08:00:10 CEST 2004
On Oct 3, 2004, at 4:23 AM, Bob Ippolito wrote:
> On Oct 3, 2004, at 2:15 AM, Just van Rossum wrote:
>
>> Bob Ippolito wrote:
>>
>>> What do you think Jack, Just? We could add it to the MacOS module.
>>> Perhaps an optional "force" parameter to MacOS.WMAvaialble()?
>>
>> Or maybe a new function? I'm +1 on including the functionality, either
>> way.
>
> I'm ambivalent as to whether it should be a new function or not. I
> suppose I'm obligated to write the patch either way since I unleashed
> the beast.. so whatever the popular opinion settles on, or a decree by
> Jack, wins.
Maybe we don't need to add this to Python.. I am fine with requiring
PyObjC. PyObjC gives us a nice little FFI for anything that's in a
bundle, so this can be done in pure python:
Here's an example of (ab)using the FFI to call into the CPS SPI:
http://svn.red-bean.com/pyobjc/trunk/pyobjc/Examples/wmEnable.py
[I have only tested this with Tiger DP.. someone else will have to
confirm that it works on 10.3 and/or 10.2]
-bob
More information about the Pythonmac-SIG
mailing list