Writing text on a canvas

In case we want to write some text on a canvas, we do not need to use an additional widget, such as a Label. The Canvas class includes the create_text method to display a string that can be manipulated the same as any other type of canvas item.

It is also possible to use the same formatting options that we can specify to add style to the text of regular Tkinter widgets, such as color, font family, and size.

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

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