I’d like to be able to change the highlight background color for a cell. So when I select a row from the grid all the other cells use the normal selection color - but one.
Any help is appreciated.
Johnf
I’d like to be able to change the highlight background color for a cell. So when I select a row from the grid all the other cells use the normal selection color - but one.
Any help is appreciated.
Johnf
The only way to that which comes to mind would require that a custom cell renderer be used which ignores the isSelected parameter if the cell being drawn is the currently highlighted cell.
On 12/28/09 12:52 PM, John Fabiani wrote:
I'd like to be able to change the highlight background color for a
cell. So when I select a row from the grid all the other cells use the
normal selection color - but one.
--
Robin Dunn
Software Craftsman
Thanks any chance there is an example?
Johnf
On Mon, Dec 28, 2009 at 6:11 PM, Robin Dunn robin@alldunn.com wrote:
On 12/28/09 12:52 PM, John Fabiani wrote:
I’d like to be able to change the highlight background color for a
cell. So when I select a row from the grid all the other cells use the
normal selection color - but one.
The only way to that which comes to mind would require that a custom
cell renderer be used which ignores the isSelected parameter if the cell
being drawn is the currently highlighted cell.
–
Robin Dunn
Software Craftsman
–
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en
There are examples of custom renderers in the wxPython demo. I don't
think there's a renderer that does this exactly, but they should give
you the general idea.
On Dec 28, 9:32 pm, John Fabiani <fabiani.j...@gmail.com> wrote:
Thanks any chance there is an example?
Johnf
On Mon, Dec 28, 2009 at 6:11 PM, Robin Dunn <ro...@alldunn.com> wrote:
> On 12/28/09 12:52 PM, John Fabiani wrote:
> > I'd like to be able to change the highlight background color for a
> > cell. So when I select a row from the grid all the other cells use the
> > normal selection color - but one.> The only way to that which comes to mind would require that a custom
> cell renderer be used which ignores the isSelected parameter if the cell
> being drawn is the currently highlighted cell.> --
> Robin Dunn
> Software Craftsman
>http://wxPython.org
-------------------
Mike Driscoll
Blog: http://blog.pythonlibrary.org
PyCon 2010 Atlanta Feb 19-21 http://us.pycon.org/