Hey,

there seems to be a problem inheriting QValidator:

=======================
from qt import *
app = QApplication([])

class V(QValidator):
    def validate(self, index, pos):
        return QValidator.Valid
v = V(None)

cb = QComboBox(None)

cb.setEditable(True)
cb.setValidator(v)

cb.show()
app.setMainWidget(cb)
qApp.exec_loop()
=======================

any time I press a key, I see:

========================
TypeError: invalid result type from V.validate()
========================

This is with PyQt 3.15, SIP 4.3.1.
-- 
Giovanni Bajo

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to