[wxPython] RE: Breaking Out of Loop

Gordon Williams wrote:

I want to run it as a single thead. Is it possible?

Well..., rather than using a Python looping-construct, you could try
using wxPython's OnIdle (I forget what you call to bind that event);

You'd have to make your loop into a function, which does not cause
itself to loop but is called repeatedly by wx. Whenever no other wx
events are being processed, the idle function will be run.

This may or may not really be what you want....

Other than that, if you want multiple things running simultaneously,
then I expect that you have to use some form of multithreading (or
multiprocessing, ie: os.fork(), which is posix-specific).