Example #1
0
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()
Example #2
0
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()
Example #3
0
 def show(self):
     self.datasourcePage = ChooseDatasourcePage(self)
     id_ = self.addPage(self.datasourcePage)
     self.addPage(ChooseColumnsDataPage(self, id_))
     self.exec_()
Example #4
0
 def show(self):
     self.datasourcePage = ChooseDatasourcePage(self)
     id_ = self.addPage(self.datasourcePage)
     self.addPage(ChooseColumnsDataPage(self, id_))
     self.exec_()