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

List:       pykde
Subject:    Re: [PyQt] QLabel.setTextInteractionFlags raises AttributeError
From:       Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date:       2008-01-17 23:05:04
Message-ID: 200801172305.04677.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]

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