Mercurial > python-cmd2
diff docs/pycon2010/graph.py @ 344:4300ef912f4a
graph'
author | catherine@Drou |
---|---|
date | Tue, 16 Feb 2010 14:05:25 -0500 |
parents | |
children | 8a5bc9f5c28e |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/pycon2010/graph.py Tue Feb 16 14:05:25 2010 -0500 @@ -0,0 +1,39 @@ +from turtle import * +pu() +goto(-400,-400) + +def label(txt): + write(txt, font=('Arial', 20, 'italic')) + +def line(len, _label): + start = pos() + pd() + forward(len) + pu() + forward(30) + pd() + label(_label) + pu() + goto(start) + +def tech(x, y, _label): + pu() + goto(x, y) + pd() + write(_label, font=('Arial', 40, 'bold')) + pu() + +line(600, "Easy to write") +left(90) +line(600, "Easy to use") + +tech(-360, 160, 'GUI') +tech(-390, 100, 'AJAX') +tech(-300, -10, 'webapp') +tech(190, -380, 'CLU') +tech(90, -320, 'TUI') +tech(100, -210, 'cmd') +tech(80, -100, 'cmd2') + +while True: + pass \ No newline at end of file