Tag: python

  • QTabWidget in PySide Automatically Resize

    When using PySide, a QTabWidget is handy. But the size of the QTabWidget is dictated by the largest item, even if it’s not visible. Let’s assume self.tw is our tab widget. Then add this function: from PySide.QtCore import * from PySide.QtGui import * class MainWindow(QMainWindow): def curTabChange(self, index): for i in range(self.tw.count()): if i ==…