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-props
Commits
128c21b5
Commit
128c21b5
authored
Oct 03, 2019
by
Paul McCarthy
🚵
Browse files
RF: Make sure minimum size is set on newly created widgets, otherwise gtk3
screws up
parent
7126ccb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
fsleyes_props/widgets_boolean.py
View file @
128c21b5
...
...
@@ -85,7 +85,7 @@ def _booleanCheckBox(parent):
"""Create a ``wx.CheckBox`` to link to the :class:`.Boolean` property. """
widget
=
wx
.
CheckBox
(
parent
)
event
=
wx
.
EVT_CHECKBOX
widget
.
SetMinSize
(
widget
.
GetBestSize
())
return
widget
,
event
,
None
,
None
...
...
@@ -106,6 +106,7 @@ def _booleanToggle(parent, icons):
falseBmp
=
falseBmp
,
style
=
style
)
event
=
bmptoggle
.
EVT_BITMAP_TOGGLE
widget
.
SetMinSize
(
widget
.
GetBestSize
())
return
widget
,
event
,
None
,
None
...
...
@@ -117,6 +118,7 @@ def _booleanRadio(parent, icons, style):
widget
=
bmpradio
.
BitmapRadioBox
(
parent
,
style
)
event
=
bmpradio
.
EVT_BITMAP_RADIO_EVENT
widget
.
SetMinSize
(
widget
.
GetBestSize
())
if
len
(
icons
)
==
2
:
icons
=
[
icons
[
0
],
None
,
icons
[
1
],
None
]
...
...
fsleyes_props/widgets_choice.py
View file @
128c21b5
...
...
@@ -222,6 +222,7 @@ def _Choice(parent,
# Initialise the widget
choicesChanged
(
None
,
'choices'
)
widgetSet
(
propVal
.
get
())
widget
.
SetMinSize
(
widget
.
GetBestSize
())
def
onDestroy
(
ev
):
log
.
debug
(
'Removing attribute listener {}'
.
format
(
listenerName
))
...
...
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