Re: qcombobox.findtext and matchflags.matchendswith
- From: "borntonetwork" <borntonetwork@xxxxxxxxx>
- Date: 3 Mar 2007 13:03:11 -0800
On Mar 3, 12:17 pm, Phil Thompson <p...@xxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
On Saturday 03 March 2007 4:52 pm,borntonetworkwrote:Thank you!
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?
QtCore.Qt.MatchEndsWith
Phil
.
- References:
- qcombobox.findtext and matchflags.matchendswith
- From: borntonetwork
- Re: qcombobox.findtext and matchflags.matchendswith
- From: Phil Thompson
- qcombobox.findtext and matchflags.matchendswith
- Prev by Date: Re: pop method question
- Next by Date: portable Python ifconfig
- Previous by thread: Re: qcombobox.findtext and matchflags.matchendswith
- Next by thread: py2exe: LoadLibrary(pythondll) failed
- Index(es):