fix problem in string formatting
This commit is contained in:
+2
-2
@@ -57,13 +57,13 @@ class ExportKontorDialog(QDialog):
|
|||||||
|
|
||||||
def change_export_type(self, text):
|
def change_export_type(self, text):
|
||||||
self.current_export_type = text
|
self.current_export_type = text
|
||||||
self.label.setText(f"Export DB to data.{self.export_options[text]["ext"]}")
|
self.label.setText(f'Export DB to data.{self.export_options[text]["ext"]}')
|
||||||
|
|
||||||
def select_file(self):
|
def select_file(self):
|
||||||
file_dialog = QFileDialog()
|
file_dialog = QFileDialog()
|
||||||
file_dialog.setFileMode(QFileDialog.FileMode.AnyFile)
|
file_dialog.setFileMode(QFileDialog.FileMode.AnyFile)
|
||||||
file_dialog.setDefaultSuffix(self.export_options[self.current_export_type]["ext"])
|
file_dialog.setDefaultSuffix(self.export_options[self.current_export_type]["ext"])
|
||||||
file_dialog.setNameFilter(f"*{self.export_options[self.current_export_type]["ext"]}")
|
file_dialog.setNameFilter(f'*{self.export_options[self.current_export_type]["ext"]}')
|
||||||
if file_dialog.exec():
|
if file_dialog.exec():
|
||||||
self.file_name = file_dialog.selectedFiles()[0]
|
self.file_name = file_dialog.selectedFiles()[0]
|
||||||
export_file = Path(self.file_name)
|
export_file = Path(self.file_name)
|
||||||
|
|||||||
Reference in New Issue
Block a user