Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fslpy
Commits
652ff908
Commit
652ff908
authored
9 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
When one view panel is remaining, it retains its display context
values (the master dctx inherits from the one remaining child).
parent
2795af8c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fsl/fsleyes/frame.py
+22
-7
22 additions, 7 deletions
fsl/fsleyes/frame.py
with
22 additions
and
7 deletions
fsl/fsleyes/frame.py
+
22
−
7
View file @
652ff908
...
...
@@ -459,16 +459,31 @@ class FSLEyesFrame(wx.Frame):
# master display context.
if
numPanels
==
1
and
\
isinstance
(
self
.
__viewPanels
[
0
],
views
.
CanvasPanel
):
dctx
=
self
.
__viewPanels
[
0
].
getDisplayContext
()
dctx
=
self
.
__viewPanels
[
0
].
getDisplayContext
()
displays
=
[
dctx
.
getDisplay
(
o
)
for
o
in
self
.
__overlayList
]
# Make sure that the parent context
# inherits the values from this context
dctx
.
setBindingDirection
(
False
)
# TODO Currently this causes the child
# context to inherit the values of the
# parent context. But we need the
# opposite - for the parent to inherit
# the values of the child.
for
display
in
displays
:
opts
=
display
.
getDisplayOpts
()
display
.
setBindingDirection
(
False
)
opts
.
setBindingDirection
(
False
)
dctx
.
syncOverlayDisplay
=
True
dctx
.
syncToParent
(
'
overlayOrder
'
)
# Reset the binding directiona
dctx
.
setBindingDirection
(
True
)
for
display
in
displays
:
opts
=
display
.
getDisplayOpts
()
display
.
setBindingDirection
(
True
)
opts
.
setBindingDirection
(
True
)
def
__onClose
(
self
,
ev
):
"""
Called when the user closes this ``FSLEyesFrame``.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment