def play(self, hwnd): if GlobalBean.currentThread == None: Util.newMidiThread(MidiPlay()) else: Util.stopMidiThread() Util.newMidiThread(MidiPlay())
def stopPlay(self): Util.stopMidiThread()