Re: A thread import problem

2012-07-23 Thread Bruce Sherwood
hose of you who have made suggestions in this forum that fed into finding a solution. I'll put in a big plug for wxPython (wxpython.org), which is a great way to do cross-platform GUI development with Python. Bruce Sherwood userpoll.py Description: Binary data wxpoll.py Description:

Re: A thread import problem

2012-07-23 Thread Bruce Sherwood
Thanks much for the useful suggestion, and also thanks for your sympathy and understanding of my plight! Bruce Sherwood On Sun, Jul 22, 2012 at 11:50 PM, Devin Jeanpierre wrote: > On Sun, Jul 22, 2012 at 7:14 PM, Bruce Sherwood > wrote: >> (2) My hand is forced by Apple no longe

Re: A thread import problem

2012-07-22 Thread Bruce Sherwood
On Sun, Jul 22, 2012 at 3:48 PM, Dennis Lee Bieber wrote: > On Sun, 22 Jul 2012 13:04:25 -0600, Bruce Sherwood > declaimed the following in > gmane.comp.python.general: > > >> Another way of saying this is that I'm not building an app, in which >> case I would

Re: A thread import problem

2012-07-22 Thread Bruce Sherwood
On Sat, Jul 21, 2012 at 5:47 PM, Dennis Lee Bieber wrote: > On Sat, 21 Jul 2012 17:10:05 -0600, Bruce Sherwood > declaimed the following in > gmane.comp.python.general: > > >> Thanks, but the problem I need to solve does not permit putting a >> function like runn

Re: A thread import problem

2012-07-21 Thread Bruce Sherwood
On Sat, Jul 21, 2012 at 4:16 PM, Dennis Lee Bieber wrote: > On Sat, 21 Jul 2012 10:11:30 -0600, Bruce Sherwood > declaimed the following in > gmane.comp.python.general: > > >> >> --- >> testABA.py -- execute this file >> >

Re: A thread import problem

2012-07-21 Thread Bruce Sherwood
On Sat, Jul 21, 2012 at 2:53 PM, Dave Angel wrote: > On 07/21/2012 04:36 PM, Bruce Sherwood wrote: >> Thanks much for this clear statement. I hadn't managed to find any >> documentation on this specific issue. >> >> Bruce Sherwood >> >> On Sat, Jul 21,

Re: A thread import problem

2012-07-21 Thread Bruce Sherwood
Thanks much for this clear statement. I hadn't managed to find any documentation on this specific issue. Bruce Sherwood On Sat, Jul 21, 2012 at 10:26 AM, Dave Angel wrote: > Two of the things you mustn't do during an import: > > 1) start or end any threads > 2) import so

Re: A thread import problem

2012-07-21 Thread Bruce Sherwood
l be able to tell me that I'm doing something wrong! Incidentally, a simple test is to execute the file ABA.py, in which case everything works. Bruce Sherwood --- testABA.py -- execute this file from ABA import * print('exec testABA') from

Re: A thread import problem

2012-07-21 Thread Bruce Sherwood
e to have A import B and B import A, though now that you describe this (if that's indeed what you mean) it makes sense. The original instance of A won't get past its initial import statement because the main loop won't return to it. Bruce Sherwood On Sat, Jul 21, 2012 at 2:32

Re: A thread import problem

2012-07-20 Thread Bruce Sherwood
the challenge is to have the visual module set up the Cocoa environment, with the user's program running in a secondary thread. Any ideas? Bruce Sherwood On Wed, Jul 18, 2012 at 5:03 PM, Bruce Sherwood wrote: > I'm trying to do something rather tricky, in which a program imports a >

A thread import problem

2012-07-18 Thread Bruce Sherwood
blem. I've tried with no success various versions of the exec statement, with respect to its global and local environment. Can anyone explain why the math import statement causes a problem? Thanks for any advice you can give. Bruce Sherwood --- The main program: fr