EasyDialogs module problem with python 2.4.1

S

scott

First my setup:

I'm using the framework build of Python 2.4.1

( http://bob.pythonmac.org/archives/2005/03/31/macpython-241-installer/ )

on an ibook G4 running Mac OS 10.3.8.

I installed wxPython 2.5.5.1 ( Unicode runtime 2.5.5.1 for the Panther
version of Macpython-OSX 2.4 )

( http://wxpython.org )

Now my problem:

EasyDialogs module

( http://www.python.org/doc/2.4.1/mac/module-EasyDialogs.html )

works with pyshell (interactive python program included with wxPython)
but not with python launched at the terminal:
ie:

-----------------------

PyShell 0.9.4 - The Flakiest Python Shell
Sponsored by Orbtech - Your source for Python programming expertise.
Python 2.4.1 (#2, Mar 31 2005, 00:05:10)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 
S

scott

scott said:
First my setup:

I'm using the framework build of Python 2.4.1

( http://bob.pythonmac.org/archives/2005/03/31/macpython-241-installer/ )

on an ibook G4 running Mac OS 10.3.8.

I installed wxPython 2.5.5.1 ( Unicode runtime 2.5.5.1 for the Panther
version of Macpython-OSX 2.4 )

( http://wxpython.org )

Now my problem:

EasyDialogs module

( http://www.python.org/doc/2.4.1/mac/module-EasyDialogs.html )

works with pyshell (interactive python program included with wxPython)
but not with python launched at the terminal:
ie:

-----------------------

PyShell 0.9.4 - The Flakiest Python Shell
Sponsored by Orbtech - Your source for Python programming expertise.
Python 2.4.1 (#2, Mar 31 2005, 00:05:10)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

Sorry, the rest of the message:

At the terminal, EasyDialogs doesn't work:

------------------------

Last login: Mon Apr 18 10:30:53 on console
Welcome to Darwin!
scott$ python
Python 2.4.1 (#2, Mar 31 2005, 00:05:10)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
Type "help", "copyright", "credits" or "license" for more information.Traceback (most recent call last):
File "<stdin>", line 1, in ?
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-mac/EasyDialogs.py",
line 75, in Message
_interact()
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-mac/EasyDialogs.py",
line 53, in _interact
AE.AEInteractWithUser(50000000)
MacOS.Error: (-1713, 'no user interaction is allowed')
 
S

scott

Martin said:
Try pythonw.

Thanks, that was it.

One more question, when I use the EasyDialogs module to, for example,
display a message in a dialog box, the dialog box doesn't appear directly.
I need to switch to 'python' by clicking on it on the dock or
alt-tabbing to 'python' in order to see the dialog box.

------------------

scott$ pythonw
Python 2.4.1 (#2, Mar 31 2005, 00:05:10)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(At this point the 'python' icon appears on the dock and starts jumping.
The actual dialog box won't appear until I manually switch to python
with alt-tab.)

-------------------

This again is in contrast to using Pyshell, where the dialog box
automagically appears without further user input upon entry of
EasyDialogs.Message('hi').

Question:
Can I get this Pyshell behavior using python from the terminal?
 
?

=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

scott said:
Can I get this Pyshell behavior using python from the terminal?

One application is "active" at any point in time, and this application
controls the menu, has its windows displayed, and so on. So when the
Terminal.app is active, Python cannot be.

Now, it may be possible to programmatically change the active
application, but I don't know how.

Regards,
Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top