How it works...

After we have created the new tab, we place a regular tk.Frame into it and assign it a background color of blue. In the loop, we create two tk.Canvas widgets, making their color orange and assigning them to grid coordinates 0,0 and 1,1. This also makes the  blue background color of the tk.Frame visible in the two other grid locations.

The following screenshot shows the result created by running the preceding code and clicking on the new Tab 3. It really is orange and blue when you run the code. In a non-colored printed book, this might not be visually obvious, but those colors are true; you can trust me on this.

You can check out the graphing and drawing capabilities by searching online. I will not go deeper into this widget in this book (but it is very cool):

GUI_canvas.py
..................Content has been hidden....................

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