File: threads.py

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


import PyQt4.Qt as qt



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