title: wxPython Pango error when using a while True loop in a thread
body: <p>In this program I get an error when I use a while True loop in the thread. Without the loop I get no error. Of course in the real program I don't update a label continuously. Any idea what I'm doing wrong?</p>
  
  <p>This is the program:</p>
  
  <pre><code>import wx
  import thread
  
  class Example(wx.Frame):
  
      def __init__(self, parent): 
          wx.Frame.__init__(self,parent)
          self.InitUI()
  
      def InitUI(self):
          self.SetSize((250, 200))
          self.Show(True)
  
          self.text = wx.StaticText(self, label='',pos=(20,30))
  
          thread.start_new_thread(self.watch,(self,None))
  
      def watch(self,dummy,e):
          while True:
              self.text.SetLabel('Closed')
  
  
  def main():
      ex = wx.App()
      Example(None)
      ex.MainLoop()    
  
  if __name__ == '__main__':
      main() 
  </code></pre>
  
  <p>And this is the error:</p>
  
  <pre><code>Pango:ERROR:/build/pango1.0-LVHqeM/pango1.0-1.30.0/./pango/pango-            layout.c:3801:pango_layout_check_lines: assertion failed: (!layout-&gt;log_attrs) Aborted
  </code></pre>
  
  <p>Any suggestions as to what I'm doing wrong? I'm (obviously) new to threading.</p>