ttk.Notebook – Get selected tab text
We can find out which tab is currently selected in a Notebook widget.
To get the selected tab text:
1 2
text = my_notebook.tab("current", "text") print(text)