Fix for bug #511057
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -455,7 +455,7 @@ class wxCalendar(wxWindow):
|
||||
self.set_day = None
|
||||
|
||||
EVT_PAINT(self, self.OnPaint)
|
||||
|
||||
EVT_SIZE(self, self.OnSize)
|
||||
|
||||
# control some of the main calendar attributes
|
||||
|
||||
@@ -611,6 +611,10 @@ class wxCalendar(wxWindow):
|
||||
def SetBusType(self):
|
||||
self.cal_type = "BUS"
|
||||
|
||||
def OnSize(self, evt):
|
||||
self.Refresh(false)
|
||||
evt.Skip()
|
||||
|
||||
def OnPaint(self, event):
|
||||
DC = wxPaintDC(self)
|
||||
self.DoDrawing(DC)
|
||||
|
Reference in New Issue
Block a user