Re: [Pythonmac-SIG] question about garbage collection with NSApplication.run()

2009-05-31 Thread Ronald Oussoren
On 31 May, 2009, at 20:34, Bill Janssen wrote: I'm writing a Python program that has a main that looks like this: application = NSApplication.sharedApplication() # set up handler for network change notification SCDynamicStoreSetNotificationKeys(DYNSTORE, None, [NETWORK_

Re: [Pythonmac-SIG] Gtk issues

2009-05-31 Thread genemartin
see my post on installing gtk and pygtk without Macports or Fink. http://www.nabble.com/PyGTK-on-OSX--to21186327.html#a22451916 http://www.nabble.com/PyGTK-on-OSX--to21186327.html#a22451916";>PyGTK on OSX? I don't use Fink or MacPorts because I want to compile myself to learn and they interfe

Re: [Pythonmac-SIG] where do I store my Python programs

2009-05-31 Thread Christopher Barker
Piet van Oostrum wrote: Another possibility, after Python-> start interpreter, is Python->Execute Buffer. For small snippets of code this may be easier, but for complete programs the shell method may be better. do check out ipython -- it' s a nice way to do this. I wonder if ipython can be th

[Pythonmac-SIG] Can't get ASDictionary to work (py2app problems?)

2009-05-31 Thread Nicholas Riley
Hi, I'm trying to use appscript on my MacBook Pro running OS X 10.5.7 and the stock Apple Python. It's never had appscript installed before. However, I can't get the binary ASDictionary I downloaded to run: Traceback (most recent call last): File "/Developer/Applications/appscript/ASDicti

Re: [Pythonmac-SIG] where do I store my Python programs

2009-05-31 Thread Piet van Oostrum
> beegee beegee (bb) wrote: >bb> Hi All, I have a mac mini mac os 10.4.11. I also have aquamac for an >editor. >bb> I have some simple programs stored in text files. and I try to run >bb> them using aquamac, but I get the following error message >bb> steps taken: >bb> launch aquamacs >bb> F

Re: [Pythonmac-SIG] Whats the invalid syntax about

2009-05-31 Thread skip
>> please suggest what could have gone wrong here why am i getting a >> syntax error It's a quirk of the interactive interpreter. To terminate a loop you need a blank input line: >>> some_list = [3,6,2,5] >>> i = 1 >>> while i < 3: ... print some_list[i], ";" ...

[Pythonmac-SIG] question about garbage collection with NSApplication.run()

2009-05-31 Thread Bill Janssen
I'm writing a Python program that has a main that looks like this: application = NSApplication.sharedApplication() # set up handler for network change notification SCDynamicStoreSetNotificationKeys(DYNSTORE, None, [NETWORK_KEY,]) # Get a CFRunLoopSource for our sto

[Pythonmac-SIG] Whats the invalid syntax about

2009-05-31 Thread beegee beegee
Hello, I have a mac mini mac os 10.4.11 aquamacs 22.3.1. I wrote this program (please see below) after i got a python prompt (this was after starting the interpreter in aquamacs) please suggest what could have gone wrong here why am i getting a syntax error some_list = [3,6,2,5] i=1 while i < 3:

[Pythonmac-SIG] crankd for monitoring OS X

2009-05-31 Thread Bill Janssen
I ran across this project yesterday, and thought I'd point it out to others: http://code.google.com/p/pymacadmin/ "A collection of Python utilities for Mac OS X system administration." In particular, check out "crankd", a Python program for monitoring various kinds of OS X events. Bill

[Pythonmac-SIG] where do I store my Python programs

2009-05-31 Thread beegee beegee
Hi All, I have a mac mini mac os 10.4.11. I also have aquamac for an editor. I have some simple programs stored in text files. and I try to run them using aquamac, but I get the following error message steps taken: launch aquamacs File -> new buffer in new window File ->new buffer in mode python P

[Pythonmac-SIG] Gtk issues

2009-05-31 Thread M Tramp
[A bit of a noob here, running Tiger on a Mac mini] Spent well over an hour last night with MacPorts, installing modules necessary to run gramps. The software needs several modules, particularly Gtk. For the past couple of weeks, I've tried several methods of installing Gtk, including Fink and