Commit 128c21b5 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: Make sure minimum size is set on newly created widgets, otherwise gtk3

screws up
parent 7126ccb4
......@@ -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]
......
......@@ -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))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment