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
4fdbc77c
Commit
4fdbc77c
authored
Aug 22, 2016
by
eric pellegrini
Browse files
Bug fix when closing the Dialog
parent
949c966c
Pipeline
#617
passed with stage
in 21 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
MDANSE/GUI/UserDefinitionViewer.py
View file @
4fdbc77c
...
@@ -74,8 +74,6 @@ class UserDefinitionViewer(wx.Dialog):
...
@@ -74,8 +74,6 @@ class UserDefinitionViewer(wx.Dialog):
self
.
Bind
(
wx
.
EVT_TREE_BEGIN_LABEL_EDIT
,
self
.
on_try_rename
,
self
.
_tree
)
self
.
Bind
(
wx
.
EVT_TREE_BEGIN_LABEL_EDIT
,
self
.
on_try_rename
,
self
.
_tree
)
self
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
on_save_ud
,
self
.
_save
)
self
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
on_save_ud
,
self
.
_save
)
self
.
Bind
(
wx
.
EVT_CLOSE
,
self
.
on_close
)
if
ud
is
not
None
:
if
ud
is
not
None
:
self
.
expand_ud
(
ud
)
self
.
expand_ud
(
ud
)
...
@@ -247,10 +245,6 @@ class UserDefinitionViewer(wx.Dialog):
...
@@ -247,10 +245,6 @@ class UserDefinitionViewer(wx.Dialog):
UD_STORE
.
set_definition
(
targetItemName
,
sectionItemName
,
newItemName
,
currentItemData
.
GetData
())
UD_STORE
.
set_definition
(
targetItemName
,
sectionItemName
,
newItemName
,
currentItemData
.
GetData
())
UD_STORE
.
remove_definition
(
targetItemName
,
sectionItemName
,
currentItemName
)
UD_STORE
.
remove_definition
(
targetItemName
,
sectionItemName
,
currentItemName
)
def
on_close
(
self
,
event
):
self
.
Destroy
()
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
app
=
wx
.
App
(
False
)
app
=
wx
.
App
(
False
)
...
...
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