mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
wxGridCellRenderer::Draw has an implementation despite being pure virtual
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user