[PyQt] QLabel.setTextInteractionFlags raises AttributeError
Phil Thompson
phil at riverbankcomputing.co.uk
Thu Jan 17 23:05:04 GMT 2008
On Thursday 17 January 2008, Dog Walker wrote:
> QT: 3.3.7 SuSE 10.2
>
> Docs (/PyQt-x11-gpl-4.1.1/doc/html/qlabel.html) show
> "QLabel.setTextInteractionFlags (self, Qt.TextInteractionFlags flags)"
This is PyQt4.
> but
>
> from qt import *
> ...
This is PyQt3.
> self.aboutTextLabel = QLabel(self.itsWindow,"aboutVersions")
> ...
>
> Traceback (most recent call last):
> File "kgmailnotifier.py", line 195, in <module>
> main()
> File "kgmailnotifier.py", line 188, in main
> kgmailnotifier = KGmailNotifier()
> File "kgmailnotifier.py", line 74, in __init__
> self.itsAboutWindow = aboutdialog.AboutDialog()
> File "/home/thudfoo/KGmailNotifier2/aboutdialog.py", line 56, in __init__
>
> self.aboutTextLabel.setTextInteractionFlags(QLabel.TextSelectableByMouse) #
> Can be selected by the mouse for copying to clipboard
> AttributeError: setTextInteractionFlags
>
> What did I do wrong?
Phil
More information about the PyQt
mailing list