[pygtk] Adding Validation in TreeView: how to use 'edited' cb and stop any other processing?
Alessandro Dentella
sandro at e-den.it
Tue Jan 20 22:39:52 WST 2009
Hi,
I'm trying to add validation in a TreeView.
Connecting to cell's 'edited' signal I can trigger validation on a cell
input and if the field is not valid I reset it to previous value. That's
not ideal, since the invalid value must be completely reentered while I'd
like to leave it there.
really It's pretty easy to do exacly what I want trapping a Tab on the
editable, but that's junst *one* way to travel throught data (albeith
very common).
What I was not able to do is to prevent from moving from that cell, from
within the 'edited' callback. I don't know how to stop any further
processing of possible precedent events (click on other cell or DonwArrow
or Tab...)
Any hints?
TIA
sandro
--
Sandro Dentella *:-)
http://sqlkit.argolinux.org SQLkit home page - PyGTK/python/sqlalchemy
More information about the pygtk
mailing list