Ejemplo n.º 1
0
    def new_clicked(self):
        importdialog = ImportWindow()
        importdialog.showImport = False

        if (importdialog.exec() == QDialog.Accepted):
            self.fileName = importdialog.fileName
            if self.isVisible():
                self.accept()
Ejemplo n.º 2
0
    def infosRequested(self):
        infosWindow = ImportWindow(dataset=self.currentDataSet, filename=self.currentFileName)
        infosWindow.noImportUI = True
        infosWindow.infosOnly = True

        if infosWindow.exec() != QDialog.Rejected:
            # TODO: Save data
            self.currentDataSet.name = infosWindow.dataSet.name
Ejemplo n.º 3
0
    def infos_requested(self):
        infos_window = ImportWindow(dataset=self.currentDataSet,
                                    filename=self.currentFileName)
        infos_window.setStyleSheet(self.styleSheet())
        infos_window.noImportUI = True
        infos_window.infosOnly = True

        if infos_window.exec() != QDialog.Rejected:
            self.currentDataSet.name = infos_window.dataSet.name
Ejemplo n.º 4
0
    def import_clicked(self):
        importdialog = ImportWindow()
        importdialog.showImport = True

        if (importdialog.exec() == QDialog.Accepted):
            self.fileName = importdialog.fileName
            self.importing = True
            if self.isVisible():
                self.accept()
Ejemplo n.º 5
0
    def new_clicked(self):
        importdialog = ImportWindow(parent=self)
        importdialog.showImport = False

        if importdialog.exec() == QDialog.Accepted:
            self.open_file(importdialog.fileName)