This commit is contained in:
yumoqing 2021-01-24 11:23:20 +08:00
parent ae0194c62b
commit 94d898ce13

View File

@ -23,7 +23,7 @@ class PlayerOSCServer(EventDispatcher):
print('PlayerOSCServer():on_osc_event():cmd=', cmd, 'args=',args) print('PlayerOSCServer():on_osc_event():cmd=', cmd, 'args=',args)
def action_event(self,cmd,*args): def action_event(self,cmd,*args):
self.dispatch('on_%s' % cmd, *args) self.dispatch('on_%s' % cmd, cmd, *args)
def start(self): def start(self):
self.thread = Background(self.server.serve_forever) self.thread = Background(self.server.serve_forever)