classShadowThread(threading.Thread): "Sub-class of Thread class to create threads to plot shadows." def__init__(self, func, args): threading.Thread.__init__(self) self.func = func self.args = args
defrun(self): apply(self.func, self.args)
classNoteThread(threading.Thread): "Sub-class of Thread class to add notes to line." def__init__(self, func, args): threading.Thread.__init__(self) self.func = func self.args = args