From 351e2a2b47edc305a3a1b6e3f4304bbb4c0f71d8 Mon Sep 17 00:00:00 2001 From: Amy Bowersox Date: Mon, 9 Dec 2019 13:37:02 -0700 Subject: [PATCH] error in Python script now --- scripts/tmp_main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/tmp_main.py b/scripts/tmp_main.py index 0e656b9..90c6f58 100644 --- a/scripts/tmp_main.py +++ b/scripts/tmp_main.py @@ -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")