I am trying to add a button to wx.grid cell. I know that some
questions of this sort have been already posted, but I haven't found
the answer: what is the easiest way to add to a cell something that at
least looks like a button?
On Mar 3, 12:31 pm, Cloud <alexej.bazhe...@gmail.com> wrote:
> I've understood that I need to derive from wxGridCellEditor. Any help
> would be appreciated.
According to the FAQ, you'd need to use the generic button widget and
draw it yourself:
http://wiki.wxpython.org/Frequently%20Asked%20Questions#How_do_I_render_buttons_in_a_wxGrid.3F
-------------------
Mike Driscoll
You can make a cell renderer that uses wx.RendererNative.DrawPushButton
to make it look like a native button.
--
Robin Dunn
Software Craftsman
http://wxPython.org
On 3/3/10 3:15 AM, Cloud wrote:
> Hi!
>
> I am trying to add a button to wx.grid cell. I know that some
> questions of this sort have been already posted, but I haven't found
> the answer: what is the easiest way to add to a cell something that at
> least looks like a button?
>You can make a cell renderer that uses wx.RendererNative.DrawPushButton
to make it look like a native button.