hi all.
as the subject I would like to know how to do it so that you can not edit in a cell of the grid.
Thanks.
Fabiolino
fabio spadaro wrote:
hi all.
as the subject I would like to know how to do it so that you can not edit in a cell of the grid.
Thanks.
Fabiolino
I use my grid instance's SetReadOnly(row, col, True). You can use this to disable entire columns or rows. At least, that's what I do. The wxwidgets docs say you can use it to disable individual cells...whatever. See also: wxPyGridTableBase - wxPyWiki
There's also the EnableEditing(False) method, which I think will disable the entire grid.
SetReadOnly(row, col, True) does work !
thank you very much, Mike Driscoll
···
2009/4/6 Mike Driscoll mike@pythonlibrary.org
fabio spadaro wrote:
hi all.
as the subject I would like to know how to do it so that you can not edit in a cell of the grid.
Thanks.
Fabiolino
I use my grid instance’s SetReadOnly(row, col, True). You can use this to disable entire columns or rows. At least, that’s what I do. The wxwidgets docs say you can use it to disable individual cells…whatever. See also: http://wiki.wxpython.org/wxPyGridTableBase
There’s also the EnableEditing(False) method, which I think will disable the entire grid.
Mike Driscoll
wxpython-users mailing list
–
Fabio Spadaro
www.fabiospadaro.com
EnableEditing( false );