diff --git a/youtube_dl_gui/mainframe.py b/youtube_dl_gui/mainframe.py index 07ce5dc..86dd441 100644 --- a/youtube_dl_gui/mainframe.py +++ b/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() diff --git a/youtube_dl_gui/optionsframe.py b/youtube_dl_gui/optionsframe.py index a136a9e..bf7c9af 100644 --- a/youtube_dl_gui/optionsframe.py +++ b/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()