Jump to content

A simple Tkinter canvas drawing demo


G+_Joe Maruschek
 Share

Recommended Posts

canvas_demo-2.png

A simple Tkinter canvas drawing demo.

https://github.com/joemarus/tkinter-examples/blob/master/canvas_demo.py

There's nothing too ground-breaking here.  The program just draws random circles or ovals or rectangles depending on your choice.  I just wanted to learn more about the Tkinter widgets, so I came up with this.  For those that are also learning about Tkinter, I hope it shows you how some of the widgets work.  Tkinter stands for Tk interface, and the Tk graphics toolkit has bindings in many languages, including Perl!  So find yourself a nice book on Tcl/Tk, and get ready for PerlTk.

Link to comment
Share on other sites

 Share

×
×
  • Create New...