15 lines
320 B
Python
15 lines
320 B
Python
#!/bin/env python2
|
|
|
|
class SceneChanger(object):
|
|
|
|
def __init__(self, socket):
|
|
self.cur_scene = 'Full'
|
|
self.snowmix_socket = socket
|
|
|
|
|
|
def switch_to(self, next_scene):
|
|
if self.cur_scene != next_scene:
|
|
cmd = "overlay finish Show%s\n" % (next_scene)
|
|
self.snowmix_socket.send(cmd)
|
|
self.cur_scene = next_scene
|