Create grid without ColLabel?

Hello,

How do I create a grid without ColLable? I could not find it in document and ended up using this:
self.SetColLabelSize(0)
It works except the grid line on the top is lost, and I doubt it is the right solution.

Also, where can I find a complete list of defined color in wxPython, like wx.RED, wx.GREEN?

Thank you.

···

  • wcc

wccppp wrote:

Hello,

How do I create a grid without ColLable? I could not find it in document and ended up using this:
self.SetColLabelSize(0)
It works except the grid line on the top is lost, and I doubt it is the right solution.

It is.

Also, where can I find a complete list of defined color in wxPython, like wx.RED, wx.GREEN?

There are not very many of them:

wx.BLACK
wx.BLUE
wx.CYAN
wx.GREEN
wx.LIGHT_GREY
wx.RED
wx.WHITE

The list of color names that are supported as strings are listed in the docs for wxColourDatabase. Plus an additional set of names can be loaded from the wx.lib.colourdb module.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Thank you Robin. Either wxColourDatabase or wx.lib.colourdb works for me.