exchange data between events

  • Thread starter Ferry Dave =?ISO-8859-15?Q?J=E4ckel?=
  • Start date
F

Ferry Dave =?ISO-8859-15?Q?J=E4ckel?=

Hello,

I'm relative new to wxPython and advanced python programming.
I have gui app and several time consuming computations, each running in its
own task. I want to display some intermediate results, so a computation
needs to update some data which in turn can be displayed by the gui.

I don't want to use wx events, because any of this computations can be
executed stand alone without any reference to wx (even without any
threading). But I don't know how to tell the gui (or main thread) there's
new data to display, and how to exchange this data between worker thread
and main thread in a save and elegant way.

I have the feeling that "everything is a pointer in python" is one of the
main concepts needed to solve this problem.
Any help with this design problem would be great!

Many thanks,
Dave Jäckel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top