QTabWidget has signal currentChanged(). And it returns index of current tab.
But how can I get this parameter in such expression:
tabs.currentChanged.connect(lambda: foo());
def foo(index):
...
Where should I look for this parameter that was just returned?