c = Canvas(); c.pack()
>
> # draw stuff
> c.create_polygon((0, 100, 50, 0, 100, 100), fill="red")
>
> # get things going
> mainloop()
>
> at the "draw a triangle" level, the main difference is mostly that
> Tkinter is a bit more
50, 0, 100, 100), fill="red")
# get things going
mainloop()
at the "draw a triangle" level, the main difference is mostly that
Tkinter is a bit more likely to be installed on your machine...
--
http://mail.python.org/mailman/listinfo/python-list
PyGame is your best bet for pure graphics. Simple shapes can be done
in just a few statements.
The Eternal Squire
--
http://mail.python.org/mailman/listinfo/python-list
JustSomeGuy wrote:
> Hi I'm writing a python application on my windows box and I want to draw
> a simple triangle on the screen... How can I do this.
> Am I going to have to use tcl/tk?
Take a look at Tkinter, Python's wrapper around Tk - you'll find many
things if you Google this!
It's hard to t
Hi I'm writing a python application on my windows box and I want to draw
a simple triangle on the screen... How can I do this.
Am I going to have to use tcl/tk?
--
http://mail.python.org/mailman/listinfo/python-list