slotUI/SlotCli.py

changeset 90
7ed95dbadf1f
parent 89
4b5b4c7ba03d
child 93
ee4f9b8a36e9
equal deleted inserted replaced
89:4b5b4c7ba03d 90:7ed95dbadf1f
166 166
167 while 1: 167 while 1:
168 key = self.scr.getch() 168 key = self.scr.getch()
169 if key == ord('q'): break 169 if key == ord('q'): break
170 elif key == ord(' '): self.box.query("+") # panic / resume 170 elif key == ord(' '): self.box.query("+") # panic / resume
171 elif key == 10: self.box.query("#") # remote start button press
171 elif key == ord('1'): self.readName(0) 172 elif key == ord('1'): self.readName(0)
172 elif key == ord('2'): self.readName(1) 173 elif key == ord('2'): self.readName(1)
173 elif key == ord('3'): self.readName(2) 174 elif key == ord('3'): self.readName(2)
174 elif key == ord('4'): self.readName(3) 175 elif key == ord('4'): self.readName(3)
175 elif key == ord('5'): self.readName(4) 176 elif key == ord('5'): self.readName(4)

mercurial