Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
MDANSE
Commits
949c966c
Commit
949c966c
authored
Aug 22, 2016
by
eric pellegrini
Browse files
Bug fix when closing the Dialog
parent
8e054326
Changes
1
Hide whitespace changes
Inline
Side-by-side
MDANSE/GUI/PreferencesSettings.py
View file @
949c966c
...
...
@@ -174,7 +174,6 @@ class PreferencesSettings(wx.Dialog):
self
.
SetSizer
(
self
.
_sizer
)
self
.
Bind
(
wx
.
EVT_CLOSE
,
self
.
on_cancel
)
self
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
on_default
,
defaultButton
)
self
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
on_apply
,
applyButton
)
self
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
on_ok
,
okButton
)
...
...
@@ -212,12 +211,8 @@ class PreferencesSettings(wx.Dialog):
PREFERENCES
.
save
()
self
.
Destroy
()
def
on_cancel
(
self
,
event
):
self
.
Destroy
()
self
.
Close
()
def
on_default
(
self
,
event
):
for
v
in
PREFERENCES
.
values
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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