From 745dfff55a78862c33313ed17fec877a0ee4c094 Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Fri, 14 Oct 2016 23:32:36 +0300 Subject: [PATCH] wx.CheckListBox set maximum size --- youtube_dl_gui/optionsframe.py | 4 ++++ 1 file changed, 4 insertions(+) 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