Esempio n. 1
0
 def onThreadAdded(threadid, threadsrunning, threads):
     rt = "Threads running: "
     c = 0
     for i in range(len(threadsrunning)):
         tn = threadmanager.getThread(threadsrunning[i], threads)["tn"]
         rt += tn
         if c + 1 < len(threadsrunning) and len(threadsrunning) > 2:
             rt += ", "
         if c + 2 == len(threadsrunning):
             rt += "and "
         c += 1
     QtCore.QMetaObject.invokeMethod(ui.notroot, "setText",
                                     QtCore.Qt.QueuedConnection,
                                     QtCore.Q_ARG("QString", rt))
     if ui.notroot.isHidden():
         QtCore.QMetaObject.invokeMethod(ui.notroot, "show",
                                         QtCore.Qt.QueuedConnection)
Esempio n. 2
0
 def onThreadAdded(threadid, threadsrunning, threads):
     rt = "Threads running: "
     c = 0
     for i in range(len(threadsrunning)):
         tn = threadmanager.getThread(threadsrunning[i], threads)["tn"]
         rt += tn
         if c + 1 < len(threadsrunning) and len(threadsrunning) > 2:
             rt += ", "
         if c + 2 == len(threadsrunning):
             rt += "and "
         c += 1
     QtCore.QMetaObject.invokeMethod(ui.notroot, "setText",
                                     QtCore.Qt.QueuedConnection,
                                     QtCore.Q_ARG("QString", rt))
     if ui.notroot.isHidden():
         QtCore.QMetaObject.invokeMethod(ui.notroot, "show",
                                     QtCore.Qt.QueuedConnection
                                     )
Esempio n. 3
0
 def onThreadRemoved(threadid, threadsrunning, threads):
     tn = threadmanager.getThread(threadid, threads)["tn"]
     setProgress(tn, 100)
     onThreadAdded(threadid, threadsrunning, threads)
Esempio n. 4
0
 def onThreadRemoved(threadid, threadsrunning, threads):
     tn = threadmanager.getThread(threadid, threads)["tn"]
     setProgress(tn, 100)
     onThreadAdded(threadid, threadsrunning, threads)
Esempio n. 5
0
 def onThreadRemoved(threadid, threadsrunning, threads):
     tn = threadmanager.getThread(threadid, threads)["tn"]
     setProgress(tn, 100)
     onThreadAdded(threadid, threadsrunning, threads)
     page["boxes"][threadid].set(False)
Esempio n. 6
0
 def onThreadRemoved(threadid, threadsrunning, threads):
     tn = threadmanager.getThread(threadid, threads)["tn"]
     setProgress(tn, 100)
     onThreadAdded(threadid, threadsrunning, threads)
     page["boxes"][threadid].set(False)