[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] How specify a null QFlags item?
From:       David Cortesi <davecortesi () gmail ! com>
Date:       2011-09-22 20:42:33
Message-ID: CALyzANt8hjVerg=_uOmWuV6o2AdQZgdvacRKH6FmhMA835o_xw () mail ! gmail ! com
[Download RAW message or body]

To a function I want to pass a parameter to be used with
QTextDocument.find, either QTextDocument.FindCaseSensitively
or zero.

When I literally pass QTextDocument.FindCaseSensitively
the function receives an object of type PyQt4.QtGui FindFlags.
When I pass zero, it gets, no surprise, an int 0.

I would like to pass a flag value of 0 and have it come in as the
same type, but I can't find any appropriate class name to use.
The class QFlags is mentioned frequently in the QtAssistant writeups
but QFlags is not listed at riverbank's PyQt4 class reference.

(Well, actually, QFlags does appear under e.g. the QDateTimeEdit class
writeup but clicking it gets a 404 error.)

How can I create a null FindFlag value?

Thanks,

Dave Cortesi
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic