[Pythonmac-SIG] SetSystemUIMode in python?

2005-05-27 Thread Jacob Kaplan-Moss
Howdy -- I'm working on a kiosk app, and I'd like to use SetSystemUIMode and friends (defined in MacApplication.h inside HIToolbox.framework). As far as I can tell, the HIToolbox framework isn't exposed in MacPython anywhere, but I might be missing something. Before I start figuring out

Re: [Pythonmac-SIG] SetSystemUIMode in python?

2005-05-27 Thread Dethe Elza
While Pyrex is a pretty reasonable way to write extensions, PyObjC or ctypes is generally less painful when wrapping a small number of functions. This is very interesting. I thought the basic choices for wrapping C functions were: * Pyrex * ctypes * Write Obj-C and import with PyObjC I

Re: [Pythonmac-SIG] SetSystemUIMode in python?

2005-05-27 Thread Bob Ippolito
On May 27, 2005, at 3:01 PM, Dethe Elza wrote: While Pyrex is a pretty reasonable way to write extensions, PyObjC or ctypes is generally less painful when wrapping a small number of functions. This is very interesting. I thought the basic choices for wrapping C functions were: * Pyrex

Re: [Pythonmac-SIG] SetSystemUIMode in python?

2005-05-27 Thread Bob Ippolito
On May 27, 2005, at 4:18 PM, Dethe Elza wrote: On 27-May-05, at 4:05 PM, Bob Ippolito wrote: I hadn't realized that you could import functions with PyObjC and no (additional) intervening Obj-C code. Very very cool. This functionality has been there since 1.2 (2004-12-29). Yes, I realize

Re: [Pythonmac-SIG] SetSystemUIMode in python?

2005-05-27 Thread Kent Quirk
Bob wrote: * SWIG (ughh) * Write C++ and use Boost.Python (ugh) * Python C API directly (not really *that* bad) Well, I've looked at all of these, and I've gotta disagree with the Ugh on Boost.Python. At least for large projects. If (like me) you have large quantities of existing C++ to deal

Re: [Pythonmac-SIG] SetSystemUIMode in python?

2005-05-27 Thread Bob Ippolito
On May 27, 2005, at 7:22 PM, Kent Quirk wrote: Bob wrote: * SWIG (ughh) * Write C++ and use Boost.Python (ugh) * Python C API directly (not really *that* bad) Well, I've looked at all of these, and I've gotta disagree with the Ugh on Boost.Python. At least for large projects. If