Browse Source

Call Layout() method on _set_layout

doc-issue-template
MrS0m30n3 8 years ago
parent
commit
6a78025dbb
2 changed files with 4 additions and 0 deletions
  1. 2
      youtube_dl_gui/mainframe.py
  2. 2
      youtube_dl_gui/optionsframe.py

2
youtube_dl_gui/mainframe.py

@ -861,6 +861,8 @@ class MainFrame(wx.Frame):
main_sizer.Add(panel_sizer, 1, wx.ALL | wx.EXPAND, 10)
self._panel.SetSizer(main_sizer)
self._panel.Layout()
def _update_youtubedl(self):
"""Update youtube-dl binary to the latest version. """
#self._update_btn.Disable()

2
youtube_dl_gui/optionsframe.py

@ -112,6 +112,8 @@ class OptionsFrame(wx.Frame):
self.panel.SetSizer(main_sizer)
self.panel.Layout()
def _on_close(self, event):
"""Event handler for wx.EVT_CLOSE event."""
self.save_all_options()

Loading…
Cancel
Save