In QMainWindow.update I have a QTabWidget with 3 tabs.
In line # 198-199, I call:
if :
self.tab.setTabVisible(0, True)
The error message returned is :
File ~/code/battery/battery.py:199 in update
TypeError: QTabWidget.setVisible() takes exactly one argument (2 given)
Nowhere in my code is there a “setVisible()”
How does the interpreter set QTabWidget.setVisible ???
My intention is to show a particular tab when a condition changes, and I believe
QTabWidget.setTabVisible(tabID, True) does it.