Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fslgui
Commits
5a0ebdc5
Commit
5a0ebdc5
authored
Jun 03, 2020
by
Taylor Hanayik
Browse files
move onClose binding to individual apps rather than core
parent
57dda55d
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/gui/core.py
View file @
5a0ebdc5
...
...
@@ -210,10 +210,6 @@ def layout(parent, buildSpec, propObj):
return
parent
def
onClose
(
event
):
wx
.
GetApp
().
ExitMainLoop
()
def
buildGUI
(
buildSpec
,
propObj
):
"""
build a GUI from a build spec dictionary (or JSON)
...
...
@@ -230,7 +226,6 @@ def buildGUI(buildSpec, propObj):
mainWin
.
Centre
()
mainWin
.
Show
()
mainWin
.
Bind
(
wx
.
EVT_CLOSE
,
onClose
)
return
mainWin
...
...
Write
Preview
Supports
Markdown
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