Avatar ·

How to introduce multi -traffic in Pyqt?

📁 многопроцессорность, python, пример

For example, there is such a code:

   import  sys  pyqt5  Import  qtcore, Qtgui, Qtwidgets, uic  class   mywin  (qtwidgets.qmainwindow):   def   __ Init __  ( self, parent =  none  ): ) Qtwidgets.qwidget .__ Init __ (Self, Parent)  self.menu ()   def   menu  ( self ):  uic.loadui (, self)   '' '' 'here is all logic, a change of UI, etc.' '    if __name __ == :  app = qtwidgets.qapplication (sys.argv)  w = mywin ()  w.show ()   sys.exit (app.exec _ ())     

but at one point you need to use multi -plate. For example, create a stopwatch that will not freeze the application.

how can this be implemented by qthread

p.s.