Re: [Pythonmac-SIG] python2.4 crashes (bus error)

2005-10-25 Thread Piet van Oostrum
> Chris Fonnesbeck <[EMAIL PROTECTED]> (CF) wrote: >CF> # Loop over models >CF> for model in models: ... >CF> # Initialize sampler >CF> sampler = models[model](county) Maybe this has nothing to do with your crash, but I saw something strange in your cod

Re: [Pythonmac-SIG] python2.4 crashes (bus error)

2005-10-25 Thread Chris Fonnesbeck
On 10/25/05, Piet van Oostrum <[EMAIL PROTECTED]> wrote: > > Chris Fonnesbeck <[EMAIL PROTECTED]> (CF) wrote: > > >CF> # Loop over models > >CF> for model in models: > ... > >CF> # Initialize sampler > >CF> sampler = models[model](county) > > Maybe this h

[Pythonmac-SIG] AEType

2005-10-25 Thread Zhi Peng
Hi! All   I often get type error when I pass some parameters inside a function while I am using appscript MacPython. I saw some documents mentioning sth like AEType('sf '). What does it mean? Anyone knew? Thanks     Zhi Yahoo! FareChase - Search multiple travel sites in one click. __

Re: [Pythonmac-SIG] AEType

2005-10-25 Thread has
Zhi Peng wrote: > I often get type error when I pass some parameters inside a function while I > am using appscript MacPython. I saw some documents mentioning sth like > AEType('sf '). What does it mean? Anyone knew? The AEType class is defined in the aem package that underpins appscript, and

[Pythonmac-SIG] obj in MacPython and Appscript

2005-10-25 Thread Zhi Peng
Hi! All   First of all, thanks for all your answers to my qestions.   1. When I used appscript, I often try to print out the object or string while I debug the program. For example: cs = app('TextEdit').documents[1].paragraphs[1]print csI assumed that cs should be anObject of paragraphs. But it

[Pythonmac-SIG] TKinter problem

2005-10-25 Thread Toby Donaldson
Hi, I'm running Python 2.4.1 on Mac OS X 10.4, and whenever I run a Tkinter command I get a "no display name and no $DISPLAY environment variable" error, e.g. >>> import Tkinter >>> Tkinter.Toplevel() Traceback (most recent call last): File "", line 1, in ? File "/opt/local/Library/Framework