title: SetText in Pyqt5
body: <p>I am developing an application in pyqt5 and I ran into one problem.
  There is a script that receives data, and in pyqt5 in the line &quot;main_text.setText (str (TEXT))&quot; I output them, and in the format &quot;str&quot; ​ But the script itself receives and outputs data every 0.2s, but in the line &quot;main_text.setText (str (TEXT))&quot; they are not updated.
  Tried through the time sleep function, the app doesn't work,</p>
  <p>what method in pyqt5 can be used to output different data to the same set text ?</p>
  <p>My code :</p>
  <pre><code>from PyQt5 import QtWidgets
  from PyQt5.QtWidgets import QApplication, QMainWindow
  
  import sys
  import MetaTrader5 as mt5
  
  import time
  
  mt5.initialize()
  
  ticket_info = mt5.symbol_info_tick(&quot;EURUSD&quot;)._asdict()
  bid_usd = mt5.symbol_info_tick(&quot;EURUSD&quot;).bid
  
  def applecation():
      app = QApplication(sys.argv)
      window = QMainWindow()
  
      window.setWindowTitle('Test Programm')
      window.setGeometry(300, 250, 350, 200)
  
  
      main_text = QtWidgets.QLabel(window)
      main_text.setText(str(bid_usd))
      main_text.move(100,100)
      main_text.adjustSize()
  
      window.show()
  
      sys.exit(app.exec_())
  
  if __name__ == &quot;__main__&quot;:
      applecation()
  </code></pre>