Added little script for scanning keycodes

This commit is contained in:
Manuel Cortez 2017-03-07 16:24:08 -06:00
parent c19a200b8d
commit 1a4575f018

View File

@ -0,0 +1,16 @@
import curses
from guicurses import widgets, window
class mainWindow(window.Window):
def __init__(self, *args, **kwargs):
super(mainWindow, self).__init__(*args, **kwargs)
self.run()
def run(self):
while 1:
c = self.screen.getch()
if c != -1:
self.setStatus(c)
curses.wrapper(mainWindow)