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

List:       pykde
Subject:    Re: [PyKDE] QListView has not childCount nor LastItem
From:       Sebastian =?iso-8859-1?q?K=FCgler?= <sebas () kde ! nl>
Date:       2005-08-30 19:29:11
Message-ID: 200508302129.11832.sebas () kde ! nl
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


> > On 30/08/05, Sebastian Kügler <sebas@kde.nl> wrote:
> > > if self.listview.childCount() == 0: # AttributeError
> > >         self.deletebutton.setEnabled(False)
> > >
> > > The childCount is - although documented [0] - not a method of the
> > > QListView (not in dir(self.listview), if I insert it.

On Tuesday 30 August 2005 20:47, Giacomo Lacava wrote:
> You are using a QListBox, not a QListView; it's a very different
> animal... QListBox hasn't got childCount, not even in the C++ QT.
> Btw, with QListView (Qt 3.3.4, PyQT 3.14.1, Debian/Sid) childCount()
> works "as advertised" :)

You're right, I used the wrong widget.

Thanks!
-- 
sebas

 http://www.kde.nl | http://vizZzion.org |  GPG Key ID: 9119 0EF9 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
You can have my Unix system when you pry it from my cold, dead fingers. - Cal 
Keegan


[Attachment #5 (application/pgp-signature)]

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


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

Configure | About | News | Add a list | Sponsored by KoreLogic