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

List:       pykde
Subject:    [PyQt] QLabel.setTextInteractionFlags raises AttributeError
From:       "Dog Walker" <thudfoo () gmail ! com>
Date:       2008-01-17 20:29:41
Message-ID: 22c088140801171229jdd63105s90e50de01708af9c () mail ! gmail ! com
[Download RAW message or body]

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!
_______________________________________________
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