Tkinter - Switch Frames

JobinPy
JobinPy
8.3 هزار بار بازدید - 2 سال پیش - I'll show you how to
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
2 سال پیش در تاریخ 1401/04/27 منتشر شده است.
8,376 بـار بازدید شده
... بیشتر