Hi Everybody!
I want to know how I can validate a user input via keyboard in wxGrid.
···
–
André Rodrigues da Cruz
Hi Everybody!
I want to know how I can validate a user input via keyboard in wxGrid.
–
André Rodrigues da Cruz
André Rodrigues da Cruz wrote:
Hi Everybody!
I want to know how I can validate a user input via keyboard in wxGrid.--
André Rodrigues da Cruz
Looking through the archives is an art you should learn. I found this with a quick search:
http://lists.wxwidgets.org/pipermail/wxpython-users/2005-May/039556.html
It seems you can attach a validator to the control. It also mentions setting a data type for a column...
See the demo as well. The third example in the Grid demo shows one way of doing this. I don't use these methods. Instead I used the SetCellEditor method and set certain cells to only accept floats. To each their own.
-------------------
Mike Driscoll
Blog: http://blog.pythonlibrary.org
Python Extension Building Network: http://www.pythonlibrary.org
Thank you for instructions Mike!
It helped me a lot!
2008/10/27 Mike Driscoll mike@pythonlibrary.org
André Rodrigues da Cruz wrote:
Hi Everybody!
I want to know how I can validate a user input via keyboard in wxGrid.
–
André Rodrigues da Cruz
Looking through the archives is an art you should learn. I found this with a quick search:
http://lists.wxwidgets.org/pipermail/wxpython-users/2005-May/039556.html
It seems you can attach a validator to the control. It also mentions setting a data type for a column…
See the demo as well. The third example in the Grid demo shows one way of doing this. I don’t use these methods. Instead I used the SetCellEditor method and set certain cells to only accept floats. To each their own.
Mike Driscoll
Blog: http://blog.pythonlibrary.org
Python Extension Building Network: http://www.pythonlibrary.org
wxpython-users mailing list
–
André Rodrigues da Cruz