Threads and GUI question

Pekka Niiranen krissepu at
Mon Oct 21 21:23:53 CEST 2002


I am using wxWindows in win2000 to start a loop that writes to a COM -port:

runOK = 1
while runOK != -1:
         -- write data to COM -port--

My original idea was to have a Stop -selection in menubar,
that would set runOK = -1 and cause the while loop above to stop.

The problem is that menubar does not response while
the while -loop is running.

Should I use threads or am I missing some simple trick ?
If using threads, how many do I need ? Only two ?


More information about the Python-list mailing list