exchange data between events

Discussion in 'Python' started by Ferry Dave =?ISO-8859-15?Q?J=E4ckel?=, Jun 28, 2004.

  1. 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
     
    Ferry Dave =?ISO-8859-15?Q?J=E4ckel?=, Jun 28, 2004
    #1
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.