Commit 48b37437 authored by eric pellegrini's avatar eric pellegrini
Browse files

The checklist of the ComboCheckBox is now expandable when popped up

parent d06a82bd
Pipeline #4265 passed with stages
in 16 minutes and 8 seconds
...@@ -40,10 +40,11 @@ class ComboCheckbox(wx.CheckListBox,wx.combo.ComboPopup): ...@@ -40,10 +40,11 @@ class ComboCheckbox(wx.CheckListBox,wx.combo.ComboPopup):
def GetControl(self): def GetControl(self):
return self return self
def GetAdjustedSize(self, minWidth, prefHeight, maxHeight): def GetAdjustedSize(self, minWidth, prefHeight, maxHeight):
return self.GetSize() size = self.GetControl().GetSize()
return wx.Size(minWidth, size[1])
def GetStringValue(self): def GetStringValue(self):
return self.GetCheckedStrings() return self.GetCheckedStrings()
Markdown is supported
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