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
def new_clicked(self): importdialog = ImportWindow() importdialog.setStyleSheet(self.styleSheet()) importdialog.showImport = False if (importdialog.exec() == QDialog.Accepted): self.fileName = importdialog.fileName if self.isVisible(): self.accept()