error in Python script now

This commit is contained in:
Amy Bowersox 2019-12-09 13:37:02 -07:00
parent c0c4242dfc
commit 351e2a2b47

View File

@ -21,9 +21,9 @@ upiwin_tmp.textout(10, 180, 'Amy was here!!!')
msg = {}
while upiwin.get_message(msg):
if msg['message'] == upiwin.WM_HWBUTTONDOWN:
print("Button {0} was pressed.\n".format(msg['attrs'][0])
print("Button {0} was pressed.\n".format(msg['attrs'][0]))
elif msg['message'] == upiwin.WM_HWBUTTONUP:
print("Button {0} was released.\n".format(msg['attrs'][0])
print("Button {0} was released.\n".format(msg['attrs'][0]))
bn = msg['attrs'][0]
if bn == 1:
print("Backlight ON.\n")