Hello, all. I have been playing with wxGrid and just can't figure out
how to
get wxGrid to do what I want. I am trying to make rows and/or cells
change background color
as the user changes cells (when a cell is changed its row's background
also changes). I
cannot, however, get the background to refresh. When
wxGrid.SetCellBackgroundColor() is
called the background color doesn't change unless the cell need be
redrawn (after it is
selected of edited). wxGrid.ForceRefresh() doesn't exist (it's not even
in wxGTK) and Refresh()
doesn't work. How can I get this to work?
Thanks,
Gabe Ycas
···
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users
Gabe Ycas wrote:
Hello, all. I have been playing with wxGrid and just can't figure out
how to
get wxGrid to do what I want. I am trying to make rows and/or cells
change background color
as the user changes cells (when a cell is changed its row's background
also changes). I
cannot, however, get the background to refresh. When
wxGrid.SetCellBackgroundColor() is
called the background color doesn't change unless the cell need be
redrawn (after it is
selected of edited). wxGrid.ForceRefresh() doesn't exist (it's not even
in wxGTK) and Refresh()
doesn't work. How can I get this to work?
Thanks,
Gabe Ycas
This reminds me, that I asked a related question with no response:
Hi Robin et al.,
once again, directly from the grid frontier:
while trying to get around the ordinary grid bool edit behavior,
I'm suffering from redraw problems. The idea is: handle bools
directly in OnLeftClick/OnKeyDown methods. Space and left click
toggle the field programmatically. To force a redraw, my current
workaround just enable/disables the cell editor quickly. This
works, as long as the cell is completely visible. If not, the
cell is drawn, when the grid cursor leaves the cell. If there's
no fine solution, I could live with it, although it's not really
aesthetically pleasing.
Question: what's the generic way to redraw some cells/the grid?
Thanks for listening
Cheers
Pete
···
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users
--
ATTENTION: You have moved your mouse!
Please reboot to make this change take effect...
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users