X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fa876ca9ec87e90605808bfcab4d4226965dbad..b881fc787d2823bdd8a415080b82feee90804a17:/wxPython/demo/wxGrid_MegaExample.py diff --git a/wxPython/demo/wxGrid_MegaExample.py b/wxPython/demo/wxGrid_MegaExample.py index aa77588e51..335db3f5a8 100644 --- a/wxPython/demo/wxGrid_MegaExample.py +++ b/wxPython/demo/wxGrid_MegaExample.py @@ -219,8 +219,8 @@ class MegaImageRenderer(Grid.PyGridCellRenderer): dc.SetBrush(wx.Brush(wx.BLUE, wx.SOLID)) dc.SetPen(wx.Pen(wx.BLUE, 1, wx.SOLID)) else: - dc.SetBrush(wxBrush(wxWHITE, wxSOLID)) - dc.SetPen(wxPen(wxWHITE, 1, wxSOLID)) + dc.SetBrush(wx.Brush(wx.WHITE, wx.SOLID)) + dc.SetPen(wx.Pen(wx.WHITE, 1, wx.SOLID)) dc.DrawRectangleRect(rect) #dc.DrawRectangle((rect.x, rect.y), (rect.width, rect.height)) @@ -236,7 +236,7 @@ class MegaImageRenderer(Grid.PyGridCellRenderer): dc.Blit((rect.x+1, rect.y+1), (width, height), image, - (0, 0), wxCOPY, True) + (0, 0), wx.COPY, True) class MegaFontRenderer(Grid.PyGridCellRenderer): @@ -265,8 +265,8 @@ class MegaFontRenderer(Grid.PyGridCellRenderer): dc.SetBrush(wx.Brush(wx.BLUE, wx.SOLID)) dc.SetPen(wx.Pen(wx.BLUE, 1, wx.SOLID)) else: - dc.SetBrush(wxBrush(wxWHITE, wxSOLID)) - dc.SetPen(wxPen(wxWHITE, 1, wxSOLID)) + dc.SetBrush(wx.Brush(wx.WHITE, wx.SOLID)) + dc.SetPen(wx.Pen(wx.WHITE, 1, wx.SOLID)) dc.DrawRectangleRect(rect) #dc.DrawRectangle((rect.x, rect.y), (rect.width, rect.height))