From 1ea7a740fec568d062227c9cd1e4e353bdacfbe3 Mon Sep 17 00:00:00 2001 From: Amy Bowersox Date: Wed, 11 Dec 2019 12:19:48 -0700 Subject: [PATCH] disco debugging the script --- scripts/demo1.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/demo1.py b/scripts/demo1.py index 7eb0e21..b1035fc 100755 --- a/scripts/demo1.py +++ b/scripts/demo1.py @@ -38,6 +38,7 @@ hdc.rectangle(cmd4_rect[0], cmd4_rect[1], cmd4_rect[2], cmd4_rect[3]) 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]): print("Click command 1") elif point_in_rect(cmd2_rect, msg['attrs'][0], msg['attrs'][1]):