File: threads.py

package info (click to toggle)
python-whiteboard 1.0%2Bgit20111009-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 2,164 kB
  • sloc: python: 1,416; xml: 61; makefile: 23; sh: 1
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