From 133b5d45b685d61f7b6934acc7b833040e43ad9a Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Tue, 25 Oct 2016 20:32:49 +0300 Subject: [PATCH] Set options frame minimum size --- youtube_dl_gui/optionsframe.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/youtube_dl_gui/optionsframe.py b/youtube_dl_gui/optionsframe.py index a60f0e7..0dffbed 100644 --- a/youtube_dl_gui/optionsframe.py +++ b/youtube_dl_gui/optionsframe.py @@ -34,7 +34,6 @@ from .formats import ( FORMATS ) #TODO Adjust layout -#TODO Set frame's min size #TODO Add labels to gettext #TODO Move all formats, etc to formats.py @@ -50,6 +49,8 @@ class OptionsFrame(wx.Frame): FRAME_TITLE = _("Options") + FRAMES_MIN_SIZE = (500, 440) + def __init__(self, parent): wx.Frame.__init__(self, parent, title=self.FRAME_TITLE, size=parent.opt_manager.options["opts_win_size"]) self.opt_manager = parent.opt_manager @@ -92,6 +93,8 @@ class OptionsFrame(wx.Frame): self.Bind(wx.EVT_BUTTON, self._on_close, self.close_button) self.Bind(wx.EVT_CLOSE, self._on_close) + self.SetMinSize(self.FRAMES_MIN_SIZE) + self._set_layout() self.load_all_options()