[wxPython-users] wxGrid - some question

Robin Dunn robin at alldunn.com
Mon Jul 3 10:02:19 PDT 2006


Artur Kapela wrote:
> Hi,
>  
> Few question ,
>     how to change cursor's (the black box on the current cell) colour or 
> style ?

	SetCellHighlightColour(colour)
	SetCellHighlightPenWidth(width)

>     how to switch off this cursor

	SetCellHighlightPenWidth(0)

>  
> I would  like to  make the "cursor" select the whole row instead of 
>  only the cell like in wxListCtrl (I know SelectRow())  .

This needs a combination of things, and has been discussed here before. 
  IIRC, first you need to pass Grid.SelectRows for the selection mode 
parameter of CreateGrid or SetTable.  Then if you want to have just a 
single row selected you need to catch the selected events and unselect 
rows other than the current one.


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





More information about the wxpython-users mailing list