Using the Tkinter library as an example, this tutorial demonstrates how to draw multicolored rectangles on a form. A simple program that handles mouse events and draws a rectangle at the mouse pointer's location is described in detail. Uncommenting one of the program lines will draw an oval.
On this page of the site you can watch the video online py031 Python graphics primitives with a duration of hours minute second in good quality, which was uploaded by the user abglazov 02 December 2017, share the link with friends and acquaintances, this video has already been watched 9,538 times on youtube and it was liked by 171 viewers. Enjoy your viewing!