From 40496e7a6a5e3f8e17c49d3671b19e20fb186069 Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Fri, 11 Nov 2016 17:15:02 +0200 Subject: [PATCH] ButtonsChoiceDialog: Center dialog --- youtube_dl_gui/mainframe.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/youtube_dl_gui/mainframe.py b/youtube_dl_gui/mainframe.py index b733e20..956d5ae 100644 --- a/youtube_dl_gui/mainframe.py +++ b/youtube_dl_gui/mainframe.py @@ -1496,6 +1496,8 @@ class ButtonsChoiceDialog(wx.Dialog): width, height = panel.GetBestSize() self.SetSize((width, height * 1.25)) + self.Center() + def _on_close(self, event): self.EndModal(event.GetEventObject().GetId())