From e8c7d7a4de0c6cb8cf6760d4d07bd8001455b18d Mon Sep 17 00:00:00 2001 From: Zearin Date: Fri, 30 Dec 2011 12:30:54 -0500 Subject: Move documentation to top-level. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Following the examples I’ve seen in other Python projects. --- docs/pycon2010/graph.py | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 docs/pycon2010/graph.py (limited to 'docs/pycon2010/graph.py') diff --git a/docs/pycon2010/graph.py b/docs/pycon2010/graph.py new file mode 100644 index 0000000..96ffde7 --- /dev/null +++ b/docs/pycon2010/graph.py @@ -0,0 +1,41 @@ +from turtle import * +pu() +goto(-400,-400) + +def label(txt): + write(txt, font=('Arial', 20, 'italic')) +hideturtle() +width(6) + +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(60, -320, 'TUI') +tech(100, -210, 'cmd') +tech(80, -80, 'cmd2') + +while True: + pass \ No newline at end of file -- cgit v1.2.1