Browse Source

wx.CheckListBox set maximum size

doc-issue-template
MrS0m30n3 8 years ago
parent
commit
745dfff55a
1 changed files with 4 additions and 0 deletions
  1. 4
      youtube_dl_gui/optionsframe.py

4
youtube_dl_gui/optionsframe.py

@ -158,6 +158,8 @@ class TabPanel(wx.Panel):
TEXTCTRL_SIZE = (-1, -1)
SPINCTRL_SIZE = (70, -1)
CHECKLISTBOX_MAX_SIZE = (-1, 120)
def __init__(self, parent, notebook):
wx.Panel.__init__(self, notebook)
self.opt_manager = parent.opt_manager
@ -218,6 +220,8 @@ class TabPanel(wx.Panel):
else:
checklistbox = wx.CheckListBox(self, choices=choices, style=style)
checklistbox.SetMaxSize(self.CHECKLISTBOX_MAX_SIZE)
return checklistbox

Loading…
Cancel
Save