InterviewSolution
Saved Bookmarks
| 1. |
How Do I Use Multiple Threads? |
|
Answer» All calls to methods of GUI OBJECTS and event HANDLERS need to happen on the main thread. In WXPYTHON the main thread is the one that FIRST imports the wxPython.wx MODULE. Other threads can send events to the main thread using wxPostEvent as is done in the Threads sample in the wxPython demo. All calls to methods of GUI objects and event handlers need to happen on the main thread. In wxPython the main thread is the one that first imports the wxPython.wx module. Other threads can send events to the main thread using wxPostEvent as is done in the Threads sample in the wxPython demo. |
|