Browse Source

Set options frame minimum size

doc-issue-template
MrS0m30n3 8 years ago
parent
commit
133b5d45b6
1 changed files with 4 additions and 1 deletions
  1. 5
      youtube_dl_gui/optionsframe.py

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

Loading…
Cancel
Save