From pykde Mon Dec 23 10:47:55 2002 From: Gordon Tyler Date: Mon, 23 Dec 2002 10:47:55 +0000 To: pykde Subject: Re: [PyKDE] QListView problem :$ X-MARC-Message: https://marc.info/?l=pykde&m=104065856924247 On December 23, 2002 01:32 pm, Bart Verwilst wrote: > I'm trying to add 2 items to a listview.. I have inherited QListViewItem in > a TreeViewItem class of my own. Added a top item to the list is no problem. > Adding several top items works fine as well. But as soon as i want to add a > child node to one of these top items, my GUI just hangs.. I hope you guys > can help me out :$ When you create the child node, you're giving it another TreeViewItem(QListViewItem) as a parent. But in your TreeViewItem.__init__ you treat the parent as a QListView and call methods which don't exist on a QListViewItem. You will probably find that the thread in which you're doing this is crashing with a Python AttributeError. Ciao, Gordon _______________________________________________ PyKDE mailing list PyKDE@mats.gmd.de http://mats.gmd.de/mailman/listinfo/pykde