[wxPython-users] return value from wx.CallAfter

甜瓜 littlesweetmelon at gmail.com
Sun Jan 13 20:51:34 PST 2008


I don't mean to duplicate each interface. You can put all calucations
needed after a wx.CallAfter into a single function.
Eg:
doAppend() will have a more meaningful name and do some real works.

def doAppendJobQueue(...):
      self.append_result = tree.AppendItem(...)
      # do some logging
      # sort tree, etc...
      self.event_append_job_queue_finish.set()

---
ShenLei




More information about the wxpython-users mailing list