slotUI/SlotCli.py

changeset 108
350d7b571ad9
parent 107
efdf471642f5
child 109
bb00e6994e5e
equal deleted inserted replaced
107:efdf471642f5 108:350d7b571ad9
49 #os.spawnlp(os.P_NOWAIT, "/usr/bin/mpg123", "mpg123", SOUNDS[what]) 49 #os.spawnlp(os.P_NOWAIT, "/usr/bin/mpg123", "mpg123", SOUNDS[what])
50 #Popen(["/usr/bin/mpg123", SOUNDS[what]]).pid 50 #Popen(["/usr/bin/mpg123", SOUNDS[what]]).pid
51 51
52 def trigger_event(what): 52 def trigger_event(what):
53 trigger_sound(what) 53 trigger_sound(what)
54 Popen([os.path.abspath(EVENTPREFIX + what]) 54 Popen([os.path.abspath(EVENTPREFIX + what)])
55 55
56 class SlotCli(): 56 class SlotCli():
57 def __init__(self, test = None, dev=""): 57 def __init__(self, test = None, dev=""):
58 self.box = Blackbox() 58 self.box = Blackbox()
59 if not test: 59 if not test:

mercurial