user2638731
user2638731

Reputation: 605

PyQt: Get current tab number

Is there a way to get the currently selected tab's number/index? I have a dictionary of tabs but I need to be able to get the currently active one.

Upvotes: 5

Views: 12570

Answers (1)

user764357
user764357

Reputation:

You can call currentIndex() on the TabWidget to get the currently selected tab.

Upvotes: 8

Related Questions