| 20 | |
| 21 | |
| 22 | class Thread(QThread): |
| 23 | |
| 24 | def run(self): |
| 25 | print('thread id', QThread.currentThread()) |
| 26 | i = 0 |
| 27 | while i < 101 and not self.isInterruptionRequested(): |
| 28 | print('value', i, time()) |
| 29 | i += 1 |
| 30 | QThread.msleep(500) |
| 31 | print('thread quit') |
| 32 | |
| 33 | |
| 34 | if __name__ == '__main__': |
no outgoing calls
no test coverage detected