Added test of using CalendarDateAttr

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40726 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-08-21 17:32:18 +00:00
parent 340515d36d
commit 47f116ccbf

View File

@@ -34,6 +34,12 @@ class TestPanel(wx.Panel):
for month, day in self.holidays:
if month == cur_month:
self.cal.SetHoliday(day)
if cur_month == 8:
attr = wx.calendar.CalendarDateAttr(border=wx.calendar.CAL_BORDER_SQUARE,
colBorder="blue")
self.cal.SetAttr(14, attr)
else:
self.cal.ResetAttr(14)
def OnCalSelChanged(self, evt):
cal = evt.GetEventObject()