wxGridCellRenderer::Draw has an implementation despite being pure virtual

This commit is contained in:
Robin Dunn
2020-12-29 14:45:14 -08:00
parent c422227c1d
commit 3d1134708e
2 changed files with 2 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ class MyCustomRenderer(gridlib.GridCellRenderer):
gridlib.GridCellRenderer.__init__(self)
def Draw(self, grid, attr, dc, rect, row, col, isSelected):
super().Draw(grid, attr, dc, rect, row, col, isSelected)
dc.SetBackgroundMode(wx.SOLID)
dc.SetBrush(wx.Brush(wx.BLACK, wx.BRUSHSTYLE_SOLID))
dc.SetPen(wx.TRANSPARENT_PEN)

View File

@@ -272,6 +272,7 @@ def run():
c.addPrivateCopyCtor()
c.find('~wxGridCellRenderer').ignore(False)
c.find('Clone').factory = True
c.find('Draw').isPureVirtual = False
tools.fixRefCountedClass(c)
for name in ITEMS: