File: threads.py

package info (click to toggle)
python-whiteboard 1.0%2Bgit20211001-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,620 kB
  • sloc: python: 1,713; xml: 61; makefile: 24; sh: 12
file content (18 lines) | stat: -rw-r--r-- 155 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# -*- coding: utf-8 -*-


import PyQt5.Qt as qt



def CreateThreadClass(func):
	class Thread(qt.QThread):
		def run(self):
			func()
	return Thread