def __init__(self, parent=None): super().__init__(parent) self.layout = QtWidgets.QHBoxLayout(self)
Are the two effects the same?
<