def preview_audio(self, *args): p = Preview() print self, p t = Thread() if p.playing: # if t.isAlive(): p.stop() print __name__, ">>stop..." else: self.play() # try: # # t.setDaemon(True) # t.run = self.play # t.start() # except Exception, e: # print e print 'preview audio file', args
def open_dir(self, *args): p = Preview() p.stop() print 'open file in explorer', args