[Pythonmac-SIG] PyCon 2005

2004-12-10 Thread Jacob Kaplan-Moss
Hey all -- I'm thinking of proposing a talk at PyCon 2005 about MacPython, and I'd like to run my idea by the list: As I see it, there are three killer features in MacPython that you can't get anywhere else: PyObjC, CoreGraphics, and scripting with appscript. Given that 30 or 45 minutes won't

Re: [Pythonmac-SIG] appscript

2005-02-12 Thread Jacob Kaplan-Moss
On Feb 12, 2005, at 11:02 AM, Michael Terry wrote: I installed the appscript module. Can someone explain to me why the following script: #!/usr/bin/pythonw Michael -- It's because pythonw is a script itself; bash doesn't like #! lines to use other scripts. It's easily enough fixed, though; just

Re: [Pythonmac-SIG] Spotlight and Python

2005-05-10 Thread Jacob Kaplan-Moss
On May 10, 2005, at 2:00 PM, Jonathan Wight wrote: > I'm not sure how useful it is to index function & class names though. > Oh, I disagree -- I've got over 100K lines of code, and I would *kill* to be able to find everywhere a particular symbol is used. And yes, I know grep -r will do it fo

[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 ho

Re: [Pythonmac-SIG] Right init method

2005-07-04 Thread Jacob Kaplan-Moss
Aldo -- PyObjC classes (that is, Python classes that extend ObjC ones, like you're trying there) don't use the standard __init__ mechanism (at least, not in a useful way). They do use the standard alloc/init mechanism from ObjC, so you're on the right track in your last try: > def init

Re: [Pythonmac-SIG] Right init method

2005-07-04 Thread Jacob Kaplan-Moss
On Jul 4, 2005, at 12:39 PM, Bob Ippolito wrote: > Also, READ THE DOCS and examples please, this is most definitely > covered a thousand times :) Lighten up, Bob; this isn't explicitly mentioned anywhere -- it only shows up once in a comment on the intro page (http:// pyobjc.sourceforge.net/d

[Pythonmac-SIG] PyObjC FAQ

2005-07-04 Thread Jacob Kaplan-Moss
On Jul 4, 2005, at 2:31 PM, Jacob Kaplan-Moss wrote: > Perhaps this one should be added to the FAQ? > ... which, I now see, doesn't seem to exist (http:// pyobjc.sourceforge.net/faq/ is a 404). Should we write one? I'm happy to coordinate putting one together if people