From b97a47705faa2aa659a44d06b374b6c31bc84827 Mon Sep 17 00:00:00 2001 From: Alex Foulon Date: Thu, 18 Jun 2015 19:35:49 +0200 Subject: [PATCH] python: fix drawing.py example --- python/examples/drawing.py | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/python/examples/drawing.py b/python/examples/drawing.py index 4a9609c..3bcf02e 100755 --- a/python/examples/drawing.py +++ b/python/examples/drawing.py @@ -96,22 +96,38 @@ if __name__ == "__main__": sys.exit() elif ch == ord('1'): draw.do_line() + dp.refresh() + time.sleep(2) elif ch == ord('2'): draw.do_line(thin=True) + dp.refresh() + time.sleep(2) elif ch == ord('3'): draw.do_polyline() + dp.refresh() + time.sleep(2) elif ch == ord('4'): draw.do_polyline(thin=True) + dp.refresh() + time.sleep(2) elif ch == ord('5'): draw.do_circle() + dp.refresh() + time.sleep(2) elif ch == ord('6'): draw.do_ellipse() + dp.refresh() + time.sleep(2) elif ch == ord('7'): draw.do_ellipse(thin=True) + dp.refresh() + time.sleep(2) elif ch == ord('8'): draw.do_box() + dp.refresh() + time.sleep(2) elif ch == ord('9'): draw.do_box(thin=True) - dp.refresh() - time.sleep(2) + dp.refresh() + time.sleep(2)