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:
@@ -229,7 +229,8 @@ class TestPanel(wxPanel):
|
|||||||
|
|
||||||
class CalendFrame(wxFrame):
|
class CalendFrame(wxFrame):
|
||||||
def __init__(self, parent, id, title, log):
|
def __init__(self, parent, id, title, log):
|
||||||
wxFrame.__init__(self, parent, id, title, wxPyDefaultPosition, wxSize(400, 400))
|
wxFrame.__init__(self, parent, id, title, size=wxSize(400, 400),
|
||||||
|
style=wxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON_RESIZE)
|
||||||
EVT_CLOSE(self, self.OnCloseWindow)
|
EVT_CLOSE(self, self.OnCloseWindow)
|
||||||
|
|
||||||
self.log = log
|
self.log = log
|
||||||
|
@@ -455,7 +455,7 @@ class wxCalendar(wxWindow):
|
|||||||
self.set_day = None
|
self.set_day = None
|
||||||
|
|
||||||
EVT_PAINT(self, self.OnPaint)
|
EVT_PAINT(self, self.OnPaint)
|
||||||
|
EVT_SIZE(self, self.OnSize)
|
||||||
|
|
||||||
# control some of the main calendar attributes
|
# control some of the main calendar attributes
|
||||||
|
|
||||||
@@ -611,6 +611,10 @@ class wxCalendar(wxWindow):
|
|||||||
def SetBusType(self):
|
def SetBusType(self):
|
||||||
self.cal_type = "BUS"
|
self.cal_type = "BUS"
|
||||||
|
|
||||||
|
def OnSize(self, evt):
|
||||||
|
self.Refresh(false)
|
||||||
|
evt.Skip()
|
||||||
|
|
||||||
def OnPaint(self, event):
|
def OnPaint(self, event):
|
||||||
DC = wxPaintDC(self)
|
DC = wxPaintDC(self)
|
||||||
self.DoDrawing(DC)
|
self.DoDrawing(DC)
|
||||||
|
Reference in New Issue
Block a user