[PyQt] QLabel.setTextInteractionFlags raises AttributeError

Dog Walker thudfoo at gmail.com
Thu Jan 17 20:29:41 GMT 2008


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)"
but

from qt import *
...
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?

-- 
I have seen the future and I'm not in it!


More information about the PyQt mailing list