Structuring our drawing program

Let's now get down to setting the basic structure for our drawing program. We want to achieve a structure, as shown in the following screenshot:

Structuring our drawing program

The structure here primarily consists of a top menu, which inherits from the GUI framework build_menu method that we created in the last iteration.

In addition, we create a top-bar frame towards the top(marked in yellow) with a method, create_top_bar(), and a toolbar frame to the left (marked with dark grey background) with create_tool_bar(). We also create a Canvas widget on the right side using the create_drawing_canvas() method, which is to serve as our drawing area.

We will ...

Get Tkinter GUI Application Development HOTSHOT now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.