def __init__(self, parent, settings):
        super(CustomDlg, self).__init__(parent)

        self.resize(400, 250)

        self._settings = settings

        # add custom sub-widgets here ...
You should override this method
dataset/ETHPy150Open shuge/Qt-Python-Binding-Examples/qcommons/qwinutils.py/CustomDlg.__init__