[Pythonmac-SIG] Example of stand-alone NSRunLoop?

2008-10-14 Thread Joe Strout
I had great success using NSSpeechSynthesizer today, but my attempts to use NSSpeechRecognizer haven't gone nearly so well. Here's what I'm trying to do: - from Foundation import * import AppKit class SRDelegate(NSObject): def speechRecognizer_didRecognizeCommand_(self,sender,cm

Re: [Pythonmac-SIG] newbie questions about Mac APIs in Python

2008-10-14 Thread Joe Strout
On Oct 14, 2008, at 4:06 PM, Joe Strout wrote: Poking around in Foundation, sure enough, NSSpeechSynthesizer isn't there. A lot of other stuff is, like NSError, though. Where should NSSpeechSynthesizer be imported from, and why don't I need any other imports in my PyObjC source file? Sh

Re: [Pythonmac-SIG] newbie questions about Mac APIs in Python

2008-10-14 Thread Joe Strout
On Oct 14, 2008, at 3:58 PM, Joe Strout wrote: OK, I'm fine with (and used to, from other environments) those sorts of limitations. So in Python, how would you go about accessing those things? Just import objc and make the same calls you would in a real PyObjC app? Just to show I'm mak

Re: [Pythonmac-SIG] newbie questions about Mac APIs in Python

2008-10-14 Thread Joe Strout
On Oct 14, 2008, at 3:39 PM, Jack Jansen wrote: Some simple things "just work", also in command line tools. These are usually the CoreFoundation things that are pretty passive objects (CFDictionaries and such). Some things work fine in a command line tool, as long as you make your command

Re: [Pythonmac-SIG] newbie questions about Mac APIs in Python

2008-10-14 Thread Jack Jansen
On 14-Oct-2008, at 19:36 , Joe Strout wrote: On Oct 13, 2008, at 10:49 AM, Chris.Barker wrote: But what if we want to do some of them from a wxPython app (only when we detect we're running on a Mac, of course)? Good question -- can pyObjC play well with wx? Anyone know? Or more generall

Re: [Pythonmac-SIG] newbie questions about Mac APIs in Python

2008-10-14 Thread Joe Strout
On Oct 13, 2008, at 10:49 AM, Chris.Barker wrote: But what if we want to do some of them from a wxPython app (only when we detect we're running on a Mac, of course)? Good question -- can pyObjC play well with wx? Anyone know? Or more generally: can you invoke some Cocoa functionality from a