From 05d46ba223c22eb2da250ff9758ce0fe0eb27c77 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 7 Nov 2006 03:46:37 +0000 Subject: [PATCH] Patch #1591763 Set focus when clicked git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wx/lib/calendar.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wxPython/wx/lib/calendar.py b/wxPython/wx/lib/calendar.py index bc26550a67..b5bcd353e7 100644 --- a/wxPython/wx/lib/calendar.py +++ b/wxPython/wx/lib/calendar.py @@ -751,6 +751,7 @@ class Calendar( wx.PyControl ): # determine the calendar rectangle click area and draw a selection def ProcessClick(self, event): + self.SetFocus() self.x, self.y = event.GetX(), event.GetY() self.shiftkey = event.ShiftDown() self.ctrlkey = event.ControlDown() -- 2.50.0