Tkinter- Pygubu Designer - Notebook Widget

Опубликовано: 24 Май 2026
на канале: JobinPy
990
17

I'll show you how to use the Notebook widget in Tkinter using Pygubu Designer.
We'll cover how to select a tab via code and how to get the text of the selected tab.
Also, we'll disable a tab, hide a tab, and re-show a hidden tab.

To support my work, visit:
https://ko-fi.com/jobinpy

0:00 Demo
1:12 Intro
1:38 Add Notebook widget to Pygubu project
2:04 Add tabs to Notebook widget
4:02 Change tab text
4:31 Add label to tabs
5:40 Add padding around Notebook widget
6:07 Add buttons
6:55 Set button command callbacks
7:57 Generate the code
9:17 Get reference to Notebook widget
11:30 Select the Audio tab
12:43 Get text of selected tab
14:01 Get options of selected tab
14:42 Get the selected tab id
15:52 Disable the selected tab
16:31 Hide the selected tab
16:59 Show hidden tab
17:35 Outro

#tkinter #tkintertutorial