qcombobox.findtext and matchflags.matchendswith

borntonetwork borntonetwork at gmail.com
Sat Mar 3 11:52:11 EST 2007


Hi.

Using the PyQt4 library, I am trying to use the following
function("cbo" is a qtcombobox):

cbo.findText(searchStr, QtCore.MatchEndsWith)

If I don't use the "QtCore.MatchEndsWith", the function works
properly, but doesn't return partial matches ending with "searchStr".
If I use "QtCore.MatchEndsWith", I get the following error:

AttributeError: 'module' object has no attribute 'MatchEndsWith'

I've tried substituting the actual number that the enumerator
represents, which gives me a typeerror message complaining that the
argument has an invalid type.

Any suggestions?




More information about the Python-list mailing list