X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fa876ca9ec87e90605808bfcab4d4226965dbad..52f52ebc4e0be6a9899d328b08db9eb14629d219:/wxPython/demo/GridStdEdRend.py diff --git a/wxPython/demo/GridStdEdRend.py b/wxPython/demo/GridStdEdRend.py index ea84545ce8..6b5110a3f2 100644 --- a/wxPython/demo/GridStdEdRend.py +++ b/wxPython/demo/GridStdEdRend.py @@ -1,8 +1,3 @@ -# 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 @@ -16,9 +11,9 @@ class MyCustomRenderer(gridlib.PyGridCellRenderer): 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)