def __init__(self):
# print('start')
locale.setlocale(locale.LC_ALL, '')
self.screen = curses.initscr() # Initialize curses.
curses.noecho()
curses.cbreak() # don't need to hit enter
curses.curs_set(0) # disable mouse cursor
self.screen.nodelay(True) # non-blocking on getch - not sure this works
# pass
self.windows = {}
self.windows['commands'] = CommandWindow(4, 1)
self.windows['light'] = LightBumperWindow(11, 1)
self.dummy = -100.0
评论列表
文章目录