ocarina/src/base/bt/needle.py

20 lines
328 B
Python
Raw Normal View History

2009-12-19 21:38:24 -05:00
#! /usr/bin/python
# To change this template, choose Tools | Templates
# and open the template in the editor.
__author__="bjschuma"
__date__ ="$Dec 19, 2009 9:30:59 PM$"
from threading import Thread
class Needle(Thread):
def __init__(self, func, args):
self.func = func
self.args = args
def run(self):
func(args)