Browse Source

Issue #98 Pt II - Replaced close method with EndModal to force ID_OK return

pull/486/head
chriskiehl 9 years ago
parent
commit
da852095a1
1 changed files with 1 additions and 1 deletions
  1. 2
      gooey/gui/widgets/calender_dialog.py

2
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):

Loading…
Cancel
Save