Or you could use the QDoubleValidator?
http://pyqt.sourceforge.net/Docs/PyQt4/qdoublevalidator.html

Reply via email to