-# 11/25/2003 - Jeff Grimmett (grimmtooth@softhome.net)
-#
-# o Updated for V2.5
-# o There is one wx.Size() I haven't figured out how to get rid of yet.
-#
import random
gridlib.PyGridCellRenderer.__init__(self)
def Draw(self, grid, attr, dc, rect, row, col, isSelected):
- dc.SetBackgroundMode(wxSOLID)
- dc.SetBrush(wxBrush(wxBLACK, wxSOLID))
- dc.SetPen(wxTRANSPARENT_PEN)
+ dc.SetBackgroundMode(wx.SOLID)
+ dc.SetBrush(wx.Brush(wx.BLACK, wx.SOLID))
+ dc.SetPen(wx.TRANSPARENT_PEN)
dc.DrawRectangleRect(rect)
dc.SetBackgroundMode(wx.TRANSPARENT)