Lesson 5/6High school~150 min

Graphics with tkinter

Drawing on a canvas, mouse clicks, buttons, text fields and timer animations. The programs run in a tkinter simulation right in the browser, so you see the result immediately.

You can solve exercises without signing in; sign in and your progress is kept.

After this lesson you'll be able to:

  • Draw lines, rectangles, ovals, polygons and text on a Canvas
  • React to the mouse with bind and to a button with command
  • Animate with after and update

What you practise here

Graphics with tkinter · Graduation exam preparation | Mente