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