diff --git a/youtube_dl_gui/optionsframe.py b/youtube_dl_gui/optionsframe.py index 327a1ee..49e2321 100644 --- a/youtube_dl_gui/optionsframe.py +++ b/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