cellbooleditor read only

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?

···


Fabio Spadaro
www.fabiospadaro.com

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?

--
Robin Dunn
Software Craftsman

Hi.

···

2010/10/9 Robin Dunn 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.

Robin Dunn

Software Craftsman

http://wxPython.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

Yes, i’m using
GridCellBoolRenderer.


Fabio Spadaro
www.fabiospadaro.com

Hi.

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.


Robin Dunn
Software Craftsman
http://wxPython.org


To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

Yes, i’m using GridCellBoolRenderer.

Try taking a look at http://objectlistview.sourceforge.net/python/recipes.html#recipe-checkbox - you need to set a checkStateGetter for the columns that are bools rather than a GridCellBoolRenderer.

Gadget/Steve

···

From: Fabio Spadaro

Sent: Sunday, October 10, 2010 11:45 AM

To: wxpython-users@googlegroups.com

Subject: Re: [wxPython-users] cellbooleditor read only

2010/10/9 Robin Dunn robin@alldunn.com

On 10/9/10 2:58 AM, Fabio Spadaro wrote:


Fabio Spadaro
www.fabiospadaro.com


To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

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.

Yes, i'm using GridCellBoolRenderer.

--
Robin Dunn
Software Craftsman