From da852095a1bc5ab03ead5265ca47ebea9fce1a35 Mon Sep 17 00:00:00 2001 From: chriskiehl Date: Sun, 6 Sep 2015 10:05:29 -0400 Subject: [PATCH] Issue #98 Pt II - Replaced close method with EndModal to force ID_OK return --- gooey/gui/widgets/calender_dialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):