PySide Multiple Inheritance: Inheriting a QWidget and a Mixin
问题 I'm trying to create a set of PySide classes that inherit QWidget, QMainWindow, and QDialog. Also, I would like to inherit another class to overrides a few functions, and also set the layout of the widget. Example: Mixin: class Mixin(object): def __init__(self, parent, arg): self.arg = arg self.parent = parent # Setup the UI from QDesigner ui = Ui_widget() ui.setupUi(self.parent) def setLayout(self, layout, title): self.parent.setWindowTitle(title) self.parent.setLayout(layout) def