title: Python: thread in PyQt, emit method to get the data
body: <p>I try to get the value of <code>Count_total_value</code> in my user interface when I call <code>Continusread</code> method, (it should  be <code>"toto"</code> according to what I want to do) but it is always the default value <code>"azerty"</code> which is displayed. Please can you tell me where I am wrong?</p>
  
  <p>This is my code:</p>
  
  <pre><code>#!/usr/bin/env python3
  from PyQt4 import QtCore, QtGui
  
  import sys
  import os
  import subprocess
  import time
  import threading
  from ctypes import *
  import ctypes
  #import Converted Python UI File
  from test_error_rx import Ui_MainWindow
  
  class MyThread(QtCore.QThread):
      Count_total_valuechanged = QtCore.pyqtSignal(str)
  
      def __init__(self, parent=None):
          super(MyThread, self).__init__(parent=parent)
          self.Count_total_value = 'Azerty'
  
      def run(self):
      ##do things to calculate Count_total_value
          Count_total_value='toto'
          self.Count_total_valuechanged.emit((self.Count_total_value))
          time.sleep(0.1)
  
  
  class Main( QtGui.QMainWindow,QtGui.QWidget):
      def __init__(self):
          QtGui.QMainWindow.__init__(self)
          self.ui = Ui_MainWindow()
          self.ui.setupUi(self)
  
          # Connect the Buttons
          QtCore.QObject.connect(self.ui.Continusread,QtCore.SIGNAL("clicked()"),self.Continusread)
  
          self.__thread = MyThread(self)
          self.__thread.Count_total_valuechanged.connect(self.ui.Count_total.setText)
  
      def Continusread(self):
         self.__thread.start()
  
      def main():
          app = QtGui.QApplication(sys.argv)
          window = Main()
          window.show()
          sys.exit(app.exec_())
  
      if __name__ == "__main__":
          main()
  </code></pre>