Introduction

In the first chapter, we covered several recipes for the standard Tkinter widget. However, we skipped the Canvas widget because it offers plenty of graphical capabilities, and it deserves a dedicated chapter by itself to dive into its common use cases.

A canvas is a rectangular area where you can not only display text and geometric shapes, such as lines, rectangles, or ovals, but also nest other Tkinter widgets. These objects are called canvas items, and each one has a unique identifier that allows us to manipulate them before they are initially displayed on the canvas.

We will cover the methods of the Canvas class with interactive samples, which will help us to identify frequent patterns that could be translated to the applications we want to build.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset