
rt8396 at gmail
Nov 21, 2009, 6:01 PM
Post #4 of 6
(565 views)
Permalink
|
On Nov 21, 7:36 pm, Lie Ryan <lie.1...@gmail.com> wrote: (..snip..) > If you want to avoid 3rd party modules, take a look at turtle and > Tkinter in the standard library. Just to add to Ryans words... If you want to avoid 3rd party modules, take a look at turtle and the Tkinter *Canvas* widget in the standard library. Here is an example. #-- start code --# try: import Tkinter as tk except ImportError: import tkinter as tk #python 3+ app = tk.Tk() canvas = tk.Canvas(app) canvas.create_line(0,0, 50,50, arrow='last') canvas.pack() app.mainloop() #-- end code --# remove the try/except when you know which one to use. I just wanted to make sure it ran out-the-box for you, have fun! -- http://mail.python.org/mailman/listinfo/python-list
|