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
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