I am looking for help with using the signal module to signal an event in my
GUI wxPython application. I can do this using Python just fine but in
wxPython, the signal does not seem to get trapped until I kill the
application. I am suspecting that this has to do with threading (maybe the
GUI is in one thread and the main in another???). Anyway, any help would be
greatly appreciated. Thanks.
Why not just send a wxEvent instead. I have a threaded app which the
wxPython is in the main thread. I send events to the the main from the
other threads for any wxPython work.
···
On Fri, 2003-10-17 at 12:11, Sidorovich, Walter V wrote:
I am looking for help with using the signal module to signal an event in my
GUI wxPython application. I can do this using Python just fine but in
wxPython, the signal does not seem to get trapped until I kill the
application. I am suspecting that this has to do with threading (maybe the
GUI is in one thread and the main in another???). Anyway, any help would be
greatly appreciated. Thanks.
Walt
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org
--
Jim West
CheckLogix -a Concord company
102 S. Tejon Ste 920, Colorado Springs, CO 80903
719.633.7005 x223 Fax: 719.633.7006 Cell: 719.660.5676
I am looking for help with using the signal module to signal an event in my
GUI wxPython application. I can do this using Python just fine but in
wxPython, the signal does not seem to get trapped until I kill the
application. I am suspecting that this has to do with threading (maybe the
GUI is in one thread and the main in another???). Anyway, any help would be
greatly appreciated. Thanks.
At best, the signal won't be delivered until there is an event handled and Python code is executed, which may or may not happen within an acceptable time after the signal happens. In practice it appears that GTK is doing something (don't know exactly what yet) with the signals that interferes with Python's signal module. You best bet is to find some other way to communicate with your app.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!