RE: [Pythonmac-SIG] Guidance, please?

2005-04-01 Thread Kent Quirk
Thank you for the reply. > Well, Carbon is perfectly native.. if it has issues, then you're doing > something wrong. However, Carbon is a pain, and I would never > recommend it for new code -- especially if you don't know your way > around. I'm beginning to believe that. :-) > >  This is

Re: [Pythonmac-SIG] Guidance, please?

2005-04-01 Thread Bob Ippolito
On Apr 1, 2005, at 12:20, Kent Quirk wrote: I’m porting a commercial Python/C++ application from Windows to Mac, and trying to preserve 95% of the code base as completely cross platform. It’s an OpenGL application that constructs its own GUI in the window, so I don’t need ANY UI widgets. At all.

Re: [Pythonmac-SIG] Re: Re: appscript and XXXX - what is my app instance returning?

2005-04-01 Thread Peter Waibel
Try this: #!/usr/bin/pythonw from appscript import * qxd = app('QuarkXPress') # get the page width pw_hm = qxd.documents[1].page_width.get() # pw_hm is quarks class horizontal_measurement # coerce horizontal_measurement to k.Float pw_float = qxd.coerce(pw_hm,to=

[Pythonmac-SIG] Guidance, please?

2005-04-01 Thread Kent Quirk
Hi, folks.   I’m porting a commercial Python/C++ application from Windows to Mac, and trying to preserve 95% of the code base as completely cross platform. It’s an OpenGL application that constructs its own GUI in the window, so I don’t need ANY UI widgets. At all.   I should warn you

Re: [Pythonmac-SIG] readline space problem?

2005-04-01 Thread Bob Ippolito
On Apr 1, 2005, at 10:13, John Hunter wrote: "Bob" == Bob Ippolito <[EMAIL PROTECTED]> writes: Bob> Mac OS X does not ship with readline. If you downloaded Bob> readline from PackageManager, it's old and might have bugs. Bob> The one at http://pythonmac.org/packages/ should link in the

Re: [Pythonmac-SIG] readline space problem?

2005-04-01 Thread John Hunter
> "Bob" == Bob Ippolito <[EMAIL PROTECTED]> writes: Bob> Mac OS X does not ship with readline. If you downloaded Bob> readline from PackageManager, it's old and might have bugs. Bob> The one at http://pythonmac.org/packages/ should link in the Bob> latest version of readline a

Re: [Pythonmac-SIG] readline space problem?

2005-04-01 Thread Bob Ippolito
On Apr 1, 2005, at 9:40, John Hunter wrote: In ipython, which uses readline for tab completion in the shell, on my powerbook when I do cd pyth The completer generates cd python _ where the _ is a placeholder for where the cursor ends up. When completing on a long path, this is annoying, because I

[Pythonmac-SIG] readline space problem?

2005-04-01 Thread John Hunter
In ipython, which uses readline for tab completion in the shell, on my powerbook when I do >>>cd pyth The completer generates >>>cd python _ where the _ is a placeholder for where the cursor ends up. When completing on a long path, this is annoying, because I have to back

[Pythonmac-SIG] Re: Re: appscript and XXXX - what is my app instance returning?

2005-04-01 Thread has
'me' wrote: tell application "QuarkXPress" tell document 1 set pw to page width as real pw = app('QuarkXPress').documents[1].page_width.get(astype=k.Float) But I haven't a clue where to find Quark's coercion method, You pass the type you want the result returned as as an opt