Tkinter Notebook methods to select hide forget tabs and using notebook tab change event

Опубликовано: 17 Март 2025
на канале: plus2net
1,927
12

0:30 hide(),forget(), select() methods
4:38 NotebookTabChanged , event when tab is changed

Part I of Basics of Notebook tabs and options :    • Tkinter Notebook to create tabs and m...  

We can use select(), forget() and hide() methods of the tab and read the tab_id and then using the same we can get the tab no. Same can be displayed at the button of the tabs. On click event of the buttons we will select the tab. Same tab can be hidden or remove ( forget ) from the Notebook by using the methods.
Here we will be reading and displaying tab number by using notebook tab change event of notebook.

https://www.plus2net.com/python/tkint...
https://www.plus2net.com/python/tkint...

#methodsNotebook #tabMethods #Tkinter #python #forgetTab #selectTab #hideTab #plus2net #tabs #tabChangeEvent #changeEventNotebook