From 8441949e3d44d0aa1adae8e8ecc2ba1dd88dd1df Mon Sep 17 00:00:00 2001 From: Amy Bowersox Date: Wed, 11 Dec 2019 12:21:03 -0700 Subject: [PATCH] script had a syntax error --- scripts/demo1.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/demo1.py b/scripts/demo1.py index b1035fc..5c83439 100755 --- a/scripts/demo1.py +++ b/scripts/demo1.py @@ -39,13 +39,13 @@ msg = {} while upiwin.get_message(msg): if msg['message'] == upiwin.WM_TOUCHCLICK: print("Click at {0},{1}".format(msg['attrs'][0], msg['attrs'][1]) - if point_in_rect(cmd1_rect, msg['attrs'][0], msg['attrs'][1]): + if point_in_rect(cmd1_rect, msg['attrs'][0], msg['attrs'][1])): print("Click command 1") - elif point_in_rect(cmd2_rect, msg['attrs'][0], msg['attrs'][1]): + elif point_in_rect(cmd2_rect, msg['attrs'][0], msg['attrs'][1])): print("Click command 2") - elif point_in_rect(cmd3_rect, msg['attrs'][0], msg['attrs'][1]): + elif point_in_rect(cmd3_rect, msg['attrs'][0], msg['attrs'][1])): print("Click command 3") - elif point_in_rect(cmd4_rect, msg['attrs'][0], msg['attrs'][1]): + elif point_in_rect(cmd4_rect, msg['attrs'][0], msg['attrs'][1])): print("Click command 4") elif msg['message'] == upiwin.WM_HWBUTTONCLICK: if msg['attrs'][0] == 4: # Button 4 = Exit app