[wxPython-users] Accessing the "row numbers" coumn
Robin Dunn
robin at alldunn.com
Mon Jan 21 12:11:04 PST 2008
Tony Cappellini wrote:
> I want to change some attributes of the column that contains the row numbers.
> I could iterate over all the rows, but It would probably be more
> straightforward if I could access them as a column.
>
> Since Column A is accessed as column 0, what would the column
> coordinate be to access the column that contains the row numbers?
I assume you are talking about the wx.grid.Grid class here...
The labels are not implemented as a column or row, but as separate
widgets. You can get access to them with grid methods
GetGridRowLabelWindow and GetGridColLabelWindow, and then you can
manipulate it somewhat using wx.Window methods, or you can override the
painting of the window yourself by binding the EVT_PAINT event.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list