From pykde Thu Mar 31 00:11:14 2005 From: "Giovanni Bajo" Date: Thu, 31 Mar 2005 00:11:14 +0000 To: pykde Subject: Re: [PyKDE] QListBoxItem.isSelected() does not exist Message-Id: <05a101c53586$27240910$594f2597 () bagio> X-MARC-Message: https://marc.info/?l=pykde&m=111222795527596 Jeffrey Barish wrote: > Here's one that I'm pretty sure is a bug. In the following complete > code sample, the line that is commented out tests whether the > listboxitem is selected. However, that line produces an > AttributeError. The line above it works correctly, but according to > the documentation selected() is obsolete. Works for me: >>> "isSelected" in dir(QListBoxText) True >>> "selected" in dir(QListBoxText) False I also tried a cut-down version of your sample and everything appears to work as expected: >>> a = QApplication([]) >>> l = QListBox(None) >>> i = QListBoxText(l, "foo") >>> i.isSelected >>> i.selected Traceback (most recent call last): File "", line 1, in ? AttributeError: selected >>> l.firstItem() is i True Which version of Qt/PyQt are you using? Giovanni Bajo _______________________________________________ PyKDE mailing list PyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde