[wxPython-users] Grid Renderers

Raffaello Barella barbarossa.platz at gmail.com
Wed Jan 23 11:18:20 PST 2008


   - How do you want the editor to behave?
   - How do you toggle the value in the cell ? I mean, do you use
   wxGrid::SetCellValue or wxGridTableBase::SetValue or
   wxGridTableBase::SetValueAsBool?


2008/1/23, James Smagala <smagala at gmail.com>:
>
> Hey All,
>
> I am relatively new to wxPython, and I am finding some difficulties
> when it comes to the Grid using a table and a renderer.  This is on
> Ubuntu Linux with the most recent wxPython (2.8,  think.)
>
> I have a grid w/table, and some boolean values in specific columns.  I
> set a boolean renderer.
>
> Initially, I tried to set an editor as well, but that proved to be
> difficult, and it didn't behave at all the way I wanted it to.  So, I
> am now capturing mouse events, and toggling the value in the cell.
> This bypasses all editors for the cell
>
> If I don't use a renderer, I can see the cell value toggling when I
> click.  With the renderer, however, the value change is never
> detected.
>
> Is this because I am bypassing all editors for the cell?  Are there
> any methods I can call/override in order to make the renderer
> recognize the change in the cell value?
>
> Any suggestions would be appreciated,
>
> James
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200801=
23/88f530e3/attachment.htm


More information about the wxpython-users mailing list