From 6a78025dbb2f1326bba9bf03e81ff59ccda3f220 Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Fri, 11 Nov 2016 17:07:15 +0200 Subject: [PATCH] Call Layout() method on _set_layout --- youtube_dl_gui/mainframe.py | 2 ++ youtube_dl_gui/optionsframe.py | 2 ++ 2 files changed, 4 insertions(+) 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()