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
fsleyes
fsleyes-widgets
Commits
889fe8fe
Commit
889fe8fe
authored
May 30, 2018
by
Paul McCarthy
🚵
Browse files
Merge branch 'rf/imagepanel' into 'master'
Rf/imagepanel See merge request fsl/fsleyes/widgets!20
parents
9c14a0c6
715754d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.rst
View file @
889fe8fe
...
...
@@ -2,6 +2,18 @@ This document contains the ``fsleyes-widgets`` release history in reverse
chronological order.
0.6.2 (Under development)
-------------------------
Changed
^^^^^^^
* The :class:`.ImagePanel` does not update its minimum size based on the image
size - this is left entirely up to application code.
0.6.1 (Friday May 11th 2018)
----------------------------
...
...
fsleyes_widgets/imagepanel.py
View file @
889fe8fe
...
...
@@ -43,10 +43,6 @@ class ImagePanel(wx.Panel):
"""
self
.
__image
=
image
if
image
is
not
None
:
self
.
SetMinSize
(
image
.
GetSize
())
else
:
self
.
SetMinSize
((
0
,
0
))
self
.
Refresh
()
...
...
@@ -58,14 +54,6 @@ class ImagePanel(wx.Panel):
ev
.
Skip
()
def
DoGetBestSize
(
self
):
"""Returns the size of the image being displayed.
"""
if
self
.
__image
is
None
:
return
(
0
,
0
)
else
:
return
self
.
__image
.
GetSize
()
def
Draw
(
self
,
ev
=
None
):
"""Draws this ``ImagePanel``. The image is scaled to the current panel
size.
...
...
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