pyqt  

[PyQt] arbitrary instance attributes on qt widgets?

Wilbert Berendsen
Mon, 05 May 2008 12:19:26 -0700

Hi, Is this legal?

q = QListBoxText(listbox)
q.bla = 3

this sets a new attribute 'bla' to 3. I could use this to have the listboxitem 
carry some other data.

Or should I subclass QListBoxItem to add such an attribute?

with best regards,
Wilbert Berendsen

-- 
http://www.wilbertberendsen.nl/
"You must be the change you wish to see in the world."
        -- Mahatma Gandhi
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt