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
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.
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=
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
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
> "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
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
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
'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