]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/calendar.py
some fixes in the compatibility class
[wxWidgets.git] / wxPython / wx / lib / calendar.py
index 4c8c3b4a4890f3f8b370e2847d45c256ce7f59ac..d65973c41150fac5f81b1b0d1061666e6fc3d8db 100644 (file)
@@ -771,7 +771,7 @@ class Calendar( wx.PyControl ):
             event.Skip()
             return
         
-        key_code = event.KeyCode()
+        key_code = event.GetKeyCode()
         
         if key_code == wx.WXK_TAB:
             forward = not event.ShiftDown()
@@ -854,6 +854,7 @@ class Calendar( wx.PyControl ):
 
     def SetDayValue(self, day):
         self.set_day = day
+        self.day = day
 
     def SetMonth(self, month):
         if month >= 1 and month <= 12: