title: Writing to a serial link continuously from a GUI program: need to use threads?
body: <p>I've written a GUI program with PyQt4 that has to send a message string over a serial data link.</p>
  
  <p>I have implemented a GUI interface with two button widgets. I need to send the data over the serial link continuously, once per second when the first button is clicked, and then stop when the second button is clicked.</p>
  
  <p>My current program is able to send data only at the instant a button is clicked. This is the method I wrote to handle the button click signal:</p>
  
  <pre><code>def sendMessage(self):
      while 1:
          print "Hello........"
          if checke == False:
              break
  </code></pre>
  
  <p>Do I need to use threads to solve this problem?</p>