Browse Source

ButtonsChoiceDialog: Center dialog

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

2
youtube_dl_gui/mainframe.py

@ -1496,6 +1496,8 @@ class ButtonsChoiceDialog(wx.Dialog):
width, height = panel.GetBestSize() width, height = panel.GetBestSize()
self.SetSize((width, height * 1.25)) self.SetSize((width, height * 1.25))
self.Center()
def _on_close(self, event): def _on_close(self, event):
self.EndModal(event.GetEventObject().GetId()) self.EndModal(event.GetEventObject().GetId())

Loading…
Cancel
Save