Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
XRD
darfix
Commits
a4fa61dd
Commit
a4fa61dd
authored
Feb 12, 2020
by
Julia Garriga Ferrer
Browse files
[gui][displayComponents] Add .h5 as default suffix at fileDialog for saving components
parent
a752b652
Pipeline
#21149
passed with stage
in 3 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
darfix/gui/displayComponentsWidget.py
View file @
a4fa61dd
...
...
@@ -170,6 +170,7 @@ class DisplayComponentsWidget(qt.QMainWindow):
fileDialog
.
setFileMode
(
fileDialog
.
AnyFile
)
fileDialog
.
setAcceptMode
(
fileDialog
.
AcceptSave
)
fileDialog
.
setOption
(
fileDialog
.
DontUseNativeDialog
)
fileDialog
.
setDefaultSuffix
(
".h5"
)
if
fileDialog
.
exec_
():
write_process
(
fileDialog
.
selectedFiles
()[
0
],
'entry'
,
self
.
dimensions
,
self
.
W
,
self
.
components
,
1
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment