TKinter Drawing

TKinter can be used to draw simple shapes e.g. Square, Polygons, and Circles.

Tkinter Events

Tkinter employs a type of programming called Event-Driven which means that the program runs in a endless loop waiting for things (events) to happen.  In order for the program to respond to these events it needs to know what… Read More

Tkinter GIFS

This animatedGif.py python class provides an easy way to include animated gifs on a TKinter canvas.

TKinter Images

You can attach images to the canvas with welcomeGif = PhotoImage(file = ‘./images/welcome.gif’)canvas.create_image(canvas_width/2,canvas_height/2, image=welcomeGif) Where the example image is located in a image subfolder of the program with type gif. If you wanted to change the image to… Read More

Tkinter Text

You can add text to a TKinter canvas with the following code titletext = canvas.create_text(10, 10, anchor=”nw”, fill=”red”) This creates a canvas text object with the name title text in the colour of red.  The text is anchored… Read More