Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Michiel Cottaar
fslpy
Commits
92deb02e
Commit
92deb02e
authored
11 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Top image is selected at start, and better synchronisation between image list and display panels
parent
b8bb7f75
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fsl/fslview/imagelistpanel.py
+4
-2
4 additions, 2 deletions
fsl/fslview/imagelistpanel.py
fsl/utils/elistbox.py
+2
-0
2 additions, 0 deletions
fsl/utils/elistbox.py
with
6 additions
and
2 deletions
fsl/fslview/imagelistpanel.py
+
4
−
2
View file @
92deb02e
...
@@ -49,8 +49,8 @@ class ImageListPanel(wx.Panel):
...
@@ -49,8 +49,8 @@ class ImageListPanel(wx.Panel):
# changed
# changed
for
i
,
image
in
enumerate
(
imageList
):
for
i
,
image
in
enumerate
(
imageList
):
self
.
_makeDisplayPanel
(
image
)
self
.
_makeDisplayPanel
(
image
)
self
.
_showDisplayPanel
(
0
)
self
.
_showDisplayPanel
(
len
(
imageList
)
-
1
)
self
.
Layout
()
self
.
Layout
()
...
@@ -98,6 +98,8 @@ class ImageListPanel(wx.Panel):
...
@@ -98,6 +98,8 @@ class ImageListPanel(wx.Panel):
'
displayPanel_{}
'
.
format
(
id
(
self
)))
'
displayPanel_{}
'
.
format
(
id
(
self
)))
displayPanel
.
Show
(
i
==
idx
)
displayPanel
.
Show
(
i
==
idx
)
self
.
listBox
.
SetSelection
(
idx
)
self
.
Layout
()
self
.
Layout
()
self
.
Refresh
()
self
.
Refresh
()
...
...
This diff is collapsed.
Click to expand it.
fsl/utils/elistbox.py
+
2
−
0
View file @
92deb02e
...
@@ -183,6 +183,8 @@ class EditableListBox(wx.Panel):
...
@@ -183,6 +183,8 @@ class EditableListBox(wx.Panel):
# These methods simply wrap the same-named wx.ListBox methods,
# These methods simply wrap the same-named wx.ListBox methods,
# while supporting the ELB_REVERSE style.
# while supporting the ELB_REVERSE style.
#
#
def
GetCount
(
self
):
return
self
.
listBox
.
GetCount
()
def
SetSelection
(
self
,
n
):
def
SetSelection
(
self
,
n
):
self
.
listBox
.
SetSelection
(
self
.
_fixIndex
(
n
))
self
.
listBox
.
SetSelection
(
self
.
_fixIndex
(
n
))
...
...
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