threads and exception in wxPython
Jaime Wyant
programmer.py at gmail.com
Tue Nov 2 12:15:43 EST 2004
I needed to do the same thing and ended up defining a custom event to
post back to the mainframe. You can get instructions on implementing
custom events in wxPython at the wxWiki here ->
http://wiki.wxpython.org/index.cgi/CustomEventClasses
If you need more help, just bark.
jw
On 02 Nov 2004 17:28:16 +0100, Zunbeltz Izaola
<zunbeltz at wm.lc.ehu.es.xxx> wrote:
>
> Hi,
>
> I've an wxPython windows that creates a thread. An object of this
> thread raised an exception and i want to cach it in the main thread,
> that of the windows (I want this becouse the first implementation
> doesn't use thread). I know that exception can not be pass between
> thread.
>
> I've read something about wraping the run() method of the threaded
> object in a try/except block and save the exception for inspection ,
> but i don't know how to implement it. Can you give me and advice?
>
> TIA
>
> Zunbeltz
>
> --
> Zunbeltz Izaola Azkona | wmbizazz at lg dot ehu
> dotes
> Materia Kondentsatuaren Fisika Saila |
> Zientzia eta Teknologia Fakultatea | Phone: 34946015326
> Euskal Herriko Unibertsitatea |
> PK 644 | Fax: 34 944648500
> 48080 Bilbo (SPAIN) |
> --
> http://mail.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list