Tkinter - Switch Frames

Published: 18 July 2022
on channel: JobinPy
9,178
237

I'll show you how to switch frames in a Tkinter application.
The example will be a Settings window that shows content based on what the user selects in a treeview widget.

Switching frames is a useful technique that you can use in your Tkinter applications.

0:00 Intro
0:37 Demo application
1:15 Start code
1:48 Treeview class
3:42 Settings view class
4:25 Illustration of plan
5:39 Pages dictionary
6:20 Page class
10:35 Grid row/column configure
11:53 Create treeview frame
13:05 Treeview select binding
16:06 Create page frame
17:11 Show page method
19:51 Add page method
24:29 Add pages to dictionary
25:54 Debug code
27:08 First demo
27:22 Apply Ttk styles
28:35 Final demo
29:01 Why use Page class
30:28 Closure

#tkinter #pythongui #python3 #pythonguitutorial


On this page of the site you can watch the video online Tkinter - Switch Frames with a duration of hours minute second in good quality, which was uploaded by the user JobinPy 18 July 2022, share the link with friends and acquaintances, this video has already been watched 9,178 times on youtube and it was liked by 237 viewers. Enjoy your viewing!