This website works better with JavaScript.
Home
Help
Sign In
cacalabs
/
libcaca
mirror of
https://github.com/cacalabs/libcaca.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
7
Wiki
Activity
Browse Source
python: fix drawing.py example
tags/v0.99.beta20
Alex Foulon
9 years ago
parent
d3cc67da08
commit
b97a47705f
1 changed files
with
18 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+18
-2
python/examples/drawing.py
+ 18
- 2
python/examples/drawing.py
View File
@@ -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)
Write
Preview
Loading…
Cancel
Save