Re: [PyKDE] QListView has not childCount nor LastItem

2005-08-30 Thread Sebastian Kügler
> > On 30/08/05, Sebastian Kügler <[EMAIL PROTECTED]> 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 in

Re: [PyKDE] QListView has not childCount nor LastItem

2005-08-30 Thread Giacomo Lacava
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" :) cheers Giacomo Lacava > > On 30/08/05, Sebastian Kügler <[EMAIL PROTECTE

[PyKDE] QListView has not childCount nor LastItem

2005-08-30 Thread Sebastian Kügler
Hi, I'm working on some examples for PyQt at the moment, and using the QListView, I found some "strange" things which look like bugs to me. if self.listview.childCount() == 0: # AttributeError self.deletebutton.setEnabled(False) The childCount is - although documented [0] - not a method