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()