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]):