PyQt: Get current tab number
pyqt, python, user-interface
Solution
You can call `currentIndex()` on the TabWidget to get the currently selected tab.
Problem
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.