Tkinter - Switch Frames

Veröffentlicht am: 18 Juli 2022
auf dem Kanal: 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


Auf dieser Seite können Sie das Online-Video Tkinter - Switch Frames mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer JobinPy 18 Juli 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 9,178 Mal angesehen und es wurde von 237 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!