Re: Draw a triangle...

2005-11-25 Thread [EMAIL PROTECTED]
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

Re: Draw a triangle...

2005-11-25 Thread Fredrik Lundh
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

Re: Draw a triangle...

2005-11-24 Thread The Eternal Squire
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

Re: Draw a triangle...

2005-11-24 Thread jmdeschamps
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

Draw a triangle...

2005-11-24 Thread JustSomeGuy
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