Robin, in my application that consists of a grid of data managed by wx.grid.Grid.
Some are boolean column, Hence I used boolean Both standard renderer and editor.
I need to show these read-only data in my model that I secure the columns with SetReadOnly but the data are displayed with Boolean values instead of the rectangular images with checked / unchecked. is expected to be so, or I made some mistakes? I thought of doing a custom cell editor using wx.RenderNative only for boolean columns to read only or is there some trick or tip to follow?
Are you using the GridCellBoolRenderer? The renderer is what will be used to display the cell value when it is being edited.
···
On 10/9/10 2:58 AM, Fabio Spadaro wrote:
Hi all.
Robin, in my application that consists of a grid of data managed by
wx.grid.Grid.
Some are boolean column, Hence I used boolean Both standard renderer and
editor.
I need to show these read-only data in my model that I secure the
columns with SetReadOnly but the data are displayed with Boolean values
instead of the rectangular images with checked / unchecked. is expected
to be so, or I made some mistakes? I thought of doing a custom cell
editor using wx.RenderNative only for boolean columns to read only or is
there some trick or tip to follow?
Hi all.
Robin, in my application that consists of a grid of data managed by
wx.grid.Grid.
Some are boolean column, Hence I used boolean Both standard renderer and
editor.
I need to show these read-only data in my model that I secure the
columns with SetReadOnly but the data are displayed with Boolean values
instead of the rectangular images with checked / unchecked. is expected
to be so, or I made some mistakes? I thought of doing a custom cell
editor using wx.RenderNative only for boolean columns to read only or is
there some trick or tip to follow?
Are you using the GridCellBoolRenderer? The renderer is what will be used to display the cell value when it is being edited.
Then it should be displayed as a box with a check mark already. Please make a small runnable sample that demonstrates the problem. MakingSampleApps - wxPyWiki
···
On 10/10/10 3:45 AM, Fabio Spadaro wrote:
Hi.
2010/10/9 Robin Dunn <robin@alldunn.com <mailto:robin@alldunn.com>>
On 10/9/10 2:58 AM, Fabio Spadaro wrote:
Hi all.
Robin, in my application that consists of a grid of data managed by
wx.grid.Grid.
Some are boolean column, Hence I used boolean Both standard
renderer and
editor.
I need to show these read-only data in my model that I secure the
columns with SetReadOnly but the data are displayed with Boolean
values
instead of the rectangular images with checked / unchecked. is
expected
to be so, or I made some mistakes? I thought of doing a custom cell
editor using wx.RenderNative only for boolean columns to read
only or is
there some trick or tip to follow?
Are you using the GridCellBoolRenderer? The renderer is what will
be used to display the cell value when it is being edited.