class DatasourceWizard(QWizard): @staticmethod def show_wizard(dargs): parent = dargs.get('parent', None) return DatasourceWizard(parent).show() def __init__(self, _parent): QWizard.__init__(self, _parent) self.setOptions(QWizard.NoBackButtonOnStartPage) self.setWizardStyle(QWizard.ModernStyle) self.setWindowState(Qt.WindowMaximized) self.setWindowTitle( QT_I18N("datasource.import.title", _default="Datasource import")) def show(self): self.datasourcePage = ChooseDatasourcePage(self) id_ = self.addPage(self.datasourcePage) self.addPage(ChooseColumnsDataPage(self, id_)) self.exec_() def closeEvent(self, event): self.datasourcePage.close()
class DatasourceWizard(QWizard): @staticmethod def show_wizard(dargs): parent = dargs.get('parent', None) return DatasourceWizard(parent).show() def __init__(self, _parent): QWizard.__init__(self, _parent) self.setOptions(QWizard.NoBackButtonOnStartPage) self.setWizardStyle(QWizard.ModernStyle) self.setWindowState(Qt.WindowMaximized) self.setWindowTitle(QT_I18N("datasource.import.title", _default="Datasource import")) def show(self): self.datasourcePage = ChooseDatasourcePage(self) id_ = self.addPage(self.datasourcePage) self.addPage(ChooseColumnsDataPage(self, id_)) self.exec_() def closeEvent(self, event): self.datasourcePage.close()
def show(self): self.datasourcePage = ChooseDatasourcePage(self) id_ = self.addPage(self.datasourcePage) self.addPage(ChooseColumnsDataPage(self, id_)) self.exec_()