Using Event/Callback so far I have only been able to get the index...How do I get the name of the tab?
self.tabWidget.currentChanged.connect(self.change_sheet)
def change_sheet(self,signal):
print(self.tabWidget.currentIndex())
Using Event/Callback so far I have only been able to get the index...How do I get the name of the tab?
self.tabWidget.currentChanged.connect(self.change_sheet)
def change_sheet(self,signal):
print(self.tabWidget.currentIndex())
Here is how to do it in C++ : https://stackoverflow.com/a/34604817/11384184
The translation to Python will be simple :
name = self.tabWidget.tabText(self.tabWidget.currentIndex())