Display a list using PyQt

Gerhard Häring gh at ghaering.de
Mon Feb 16 03:28:41 EST 2009


member Basu wrote:
> I'm writing an application with PyQt as the GUI toolkit. I have a
> function that returns a simple list and I would like to update a List
> View widget with it. However I can't get it to work. I'm not sure if I
> need to subclass one of the Model classes, because it is just a list.
> Can someone point me to a simple tutorial or give me instructions on how
> to go about doing this?

The attached example should help. Also see the examples included with PyQt.

-- Gerhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt_list.py
Type: text/x-python
Size: 1073 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20090216/494d2767/attachment-0001.py>


More information about the Python-list mailing list