Re: [Tutor] [tutor] Question on multithreading

2008-02-26 Thread Kent Johnson
Varsha Purohit wrote: > Hello, > i have a gui program in wxpython where i am spawning two threads. > one for the mainloop of gui and other for some background tasks. It is unusual to start a new thread for the GUI. Usually the GUI is run in the main application thread. > I have > to stop th

Re: [Tutor] Question on multithreading

2008-02-24 Thread Thomas Pani
Hi, Here are some thoughts: From the Python Library Reference: "If the subclass overrides the constructor, it must make sure to invoke the base class constructor (Thread.__init__()) before doing anything else to the thread." You'll have to do that for your GuiScript class. You can't just sto

[Tutor] [tutor] Question on multithreading

2008-02-23 Thread Varsha Purohit
Hello, i have a gui program in wxpython where i am spawning two threads. one for the mainloop of gui and other for some background tasks. I have to stop the background running thread once its work is done. I am trying to use the join method but it is giving me an error saying threads cannot be

Re: [Tutor] [tutor] Question on multithreading

2008-01-29 Thread bob gailer
Varsha Purohit wrote: > Hello friends, > I hve a GUI where i have start button and stop button. When i > press start button one thread is created and it is executing some > background task and when i press stop button that thread is > stopped/killed. These two things are working properly

Re: [Tutor] [tutor] Question on multithreading

2008-01-29 Thread John Fouhy
On 30/01/2008, Varsha Purohit <[EMAIL PROTECTED]> wrote: > Hello friends, > I hve a GUI where i have start button and stop button. When i press > start button one thread is created and it is executing some background task > and when i press stop button that thread is stopped/killed. These t

[Tutor] [tutor] Question on multithreading

2008-01-29 Thread Varsha Purohit
Hello friends, I hve a GUI where i have start button and stop button. When i press start button one thread is created and it is executing some background task and when i press stop button that thread is stopped/killed. These two things are working properly. But i have to implement pause but