Custom Image Renderer for a grid with an checkbox

I want to display images in a grid (wx.grid.Grid) with a corresponding checkbox for each image on a cell. I looked at several resources but I don't see any out of the box control that wxPython provides. So, I am planning to write a Custom Renderer that essentially extends wx.grid.PyGridCellRenderer and override the Draw method. I have still to look how I can use the Checkbox renderer that wxPython provides at the same time.

I want to make sure that I am on the right track by asking this question to the wxPython users.

Thanks.

Almost. Your renderer should also handle drawing the checkbox rather than trying to also use the stock bool renderer.

···

On 3/3/11 4:34 AM, Prabin Paudel wrote:

I want to display images in a grid (wx.grid.Grid) with a corresponding
checkbox for each image on a cell. I looked at several resources but I
don't see any out of the box control that wxPython provides. So, I am
planning to write a Custom Renderer that essentially extends
wx.grid.PyGridCellRenderer and override the Draw method. I have still to
look how I can use the Checkbox renderer that wxPython provides at the
same time.

I want to make sure that I am on the right track by asking this question
to the wxPython users.

--
Robin Dunn
Software Craftsman