Commit f00fe06c authored by Julia Garriga Ferrer's avatar Julia Garriga Ferrer
Browse files

[gui][displayComponents] Add .h5 as default suffix at fileDialog for saving components

parent c4650078
...@@ -170,6 +170,7 @@ class DisplayComponentsWidget(qt.QMainWindow): ...@@ -170,6 +170,7 @@ class DisplayComponentsWidget(qt.QMainWindow):
fileDialog.setFileMode(fileDialog.AnyFile) fileDialog.setFileMode(fileDialog.AnyFile)
fileDialog.setAcceptMode(fileDialog.AcceptSave) fileDialog.setAcceptMode(fileDialog.AcceptSave)
fileDialog.setOption(fileDialog.DontUseNativeDialog) fileDialog.setOption(fileDialog.DontUseNativeDialog)
fileDialog.setDefaultSuffix(".h5")
if fileDialog.exec_(): if fileDialog.exec_():
write_process(fileDialog.selectedFiles()[0], 'entry', write_process(fileDialog.selectedFiles()[0], 'entry',
self.dimensions, self.W, self.components, 1) self.dimensions, self.W, self.components, 1)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment