Add missing methods in wxGridCellAttr, update etg and tests too.

This commit is contained in:
Robin Dunn
2016-09-02 10:50:25 -07:00
parent 78ae39a664
commit baa26c88d4
3 changed files with 28 additions and 2 deletions

View File

@@ -266,6 +266,8 @@ def run():
c.find('GetAlignment.vAlign').out = True
c.find('GetNonDefaultAlignment.hAlign').out = True
c.find('GetNonDefaultAlignment.vAlign').out = True
c.find('GetSize.num_rows').out = True
c.find('GetSize.num_cols').out = True
c.find('SetEditor.editor').transfer = True
c.find('SetRenderer.renderer').transfer = True

View File

@@ -100,13 +100,37 @@ class grid_Tests(wtc.WidgetTestCase):
def test_grid18(self):
a = wx.grid.GridCellAttr()
a.DecRef()
def test_grid18a(self):
# test that some GCA methods which were missing are now present
a = wx.grid.GridCellAttr()
b = wx.grid.GridCellAttr()
a.MergeWith(b)
a.SetFont(wx.NORMAL_FONT)
a.SetOverflow(True)
a.SetSize(3,4)
a.SetKind(wx.grid.GridCellAttr.Cell)
a.HasReadWriteMode()
a.HasOverflowMode()
a.HasSize()
a.GetSize()
a.GetOverflow()
a.GetKind()
a.DecRef()
def test_grid19(self):
wx.grid.GridCellAttr.Any
wx.grid.GridCellAttr.Cell
wx.grid.GridCellAttr.Row
wx.grid.GridCellAttr.Col
wx.grid.GridCellAttr.Default
wx.grid.GridCellAttr.Merged
def test_grid20(self):
class MyRenderer(wx.grid.GridCornerHeaderRenderer):