I don't have ads on this website.
Donations help keep this site going.

If you find tkinter-snippets.com useful, please donate any amount you feel comfortable with.
Visit https://ko-fi.com/jobinpy to donate. Thank you!

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)

img