diff --git a/gooey/gui/widgets/calender_dialog.py b/gooey/gui/widgets/calender_dialog.py index c2e122d..7bea498 100644 --- a/gooey/gui/widgets/calender_dialog.py +++ b/gooey/gui/widgets/calender_dialog.py @@ -32,7 +32,7 @@ class CalendarDlg(wx.Dialog): self.Bind(wx.EVT_BUTTON, self.OnOkButton, self.ok_button) def OnOkButton(self, event): - self.Close() + self.EndModal(wx.ID_OK) event.Skip() def OnCancellButton(self, event):