Also, download the wxPython demo and check out the DelayedResult and
Threads demos. Either may offer other ways of thinking about your
problem.
- Josiah
···
Josiah Carlson <jcarlson@uci.edu> wrote:
Richie Ward <richie@lucnetsolutions.com> wrote:
>
> I am trying to learn Threading in WxPython... argh I hate threads in
> alot of languages but im determined to beat them! Python looks promising
> though!
>
> I am reading this: http://wiki.wxpython.org/index.cgi/LongRunningTasks
[snip]
> I want to split that file into a few modules... something like this:
[snip]
> Im not quite sure how to fix it but I know why... the EVT_RESULT_ID
> variable isnt getting to the other modules... i need to make this
> variable accessable to all the threads and classes.See the Python tutorial on module/package namespaces:
http://docs.python.org/tut/node8.htmlYou also may want to take a look at:
http://wiki.wxpython.org/index.cgi/AsynchronousSocketsWhich shows the updated way of creating and using new event types, both
from a the GUI thread and from an optional secondary thread. Which
reminds me that someone should update the wiki to use more up-to-date
patterns.- Josiah
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org