From: Steven P. <n9...@n9...> - 2003-12-03 21:33:08
|
On Dec 3, 2003, at 3:21 PM, Steven Palm wrote: > calendarcontrol.py: > Class Calendar(wxPanel): > . > . > . > def initvars(self): > Calendar.attrevenmonth=CalendarCellAttributes() > Calendar.attroddmonth=CalendarCellAttributes() > > > Calendar.attroddmonth.cellbackground=wxTheBrushList.FindOrCreateBrush( > wxColour(255, 255, 230), wxSOLID) > Calendar.attrselectedcell=CalendarCellAttributes() > > > Calendar.attrselectedcell.cellbackground=wxTheBrushList.FindOrCreateBru > sh( wxColour(240,240,240), wxSOLID) > Calendar.attrselectedcell.labelfont=wxFont(17, wxSWISS, wxNORMAL, > wxBOLD ) > Calendar.attrselectedcell.labelforeground=wxNamedColour("BLACK") Oh yeah! And also add: in def __init__(self): self.initvars() I also had to change two wxTextAttr(font=f) to wxTextAttr(wxBLACK, wxNullColour, f) in guiwidgets.py because it wasn't recognizing font= as a valid parameter label. -. ----. -.-- - -.-- Steve Palm - n9...@n9... -. ----. -.-- - -.-- |