def test_headerctrl4(self): hc = wx.HeaderCtrlSimple(self.frame) col = wx.HeaderColumnSimple("Hello") hc.AppendColumn(col) col = wx.HeaderColumnSimple("World") hc.AppendColumn(col)
def test_headercolProperties(self): hc = wx.HeaderColumnSimple('title', 80, wx.ALIGN_RIGHT, wx.COL_RESIZABLE) # normal properties hc.Title hc.Width hc.MinWidth hc.Alignment hc.Flags # monkey-patched hc.Hidden self.assertTrue(hc.Hidden == hc.IsHidden()) hc.Hidden = True self.assertTrue(hc.Hidden == hc.IsHidden()) self.assertTrue(hc.Shown == hc.IsShown())
def test_headercolCtor2(self): bmp = wx.BitmapBundle(wx.Bitmap(pngFile)) hc = wx.HeaderColumnSimple(bmp, flags=wx.COL_RESIZABLE) hc.BitmapBundle
def test_headercolCtor1(self): hc = wx.HeaderColumnSimple('title', 80, wx.ALIGN_RIGHT, wx.COL_RESIZABLE)