title: Not responding issue with the wxpython
body: <p>I'm quite new to wxpython, yet to learn process or threading.
  I have been checking online for my problem with non -responsive window whenever the data is processed. I have seen quite a few examples online but I couldnt find a solution to my issue (probably i'm not getting the point) cos i do not use thread, its just a normal simple program that uses a while loop and it has to be inside the while loop for around 150secs, at the same time i have redirected the print text to the log window, which gets freezed as well the window shows not responding when i go to someother tab while this program is under process kindly suggest me the solution. 
  The code goes like this
  i have used Mike's logic in redirecting the text.</p>
  
  <pre><code>class RedirectText(object):
      def __init__(self,aWxTextCtrl):
          self.out=aWxTextCtrl
  
      def write(self,string):
          self.out.WriteText(string)
  
  Class GUI(wx.Frame):
      def __init__(self, parent):
          # All the frame work
          # redirected print to the stdout
  
      def run(self, input):
          #calls another operation 
          self.set_BankID(BankID, serSCU,SerialLogResult)
  
      def set_BankID(self,BankID, serSCU,SerialLogResult):
          #while loop
          iteration=0
          While iteration &lt; 3:
              wx.Yield()
              while process = 0:
                  wait 150 secs
              #end of inner while loop
              #condition met for iteration
           #End of outer while loop
  
  if __name__ == '__main__':
      app=wx.App(False)
      frame =GUI(None)
      frame.Show()
      app.MainLoop()
  </code></pre>