Threads and GUI question

Pekka Niiranen krissepu at vip.fi
Mon Oct 21 15:23:53 EDT 2002


Hi,

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 ?

-pekka-
   




More information about the Python-list mailing list