The code works fine over here. If you want to know what index is selected
rather than what item is selected, call list.currentItem() which returns an
int index number.
If it says AttributeError, you either have an outdated version of PyQt (which
you do) or an outdated version of Qt (which I
On Mon, 2003-09-01 at 03:06, Derek Fountain wrote:
> Is the QListBox selectedItem() method implemented? At the risk of looking a
> complete newbie, which I am, why does this:
>
> #!/usr/bin/python
>
> import sys
> from qt import *
>
> app=QApplication(sys.argv)
>
> list=QListBox()
> list.inser
Hi,
I'm struggling to understand how to use QIconFactory. I can't seem to
get createPixmap() in my subclassed QIconFactory called in a situation
where, as far as I understand the docs, it should be called. Below is
some sample code that demonstrates my problem.
Have I misunderstood how to use
Am Mon, 2003-09-01 um 10.11 schrieb Jim Bublitz:
> I'd be interested in hearing anyone's comments, suggestions,
> criticisms, etc. either on the list or off. Where would you like
> to use Python? For what kinds of applications or tasks?
As you will probably know I'm still very interested in "rap
I'm trying to schedule out work I should do on/related to PyKDE
since 3.8 is essentially complete (I have some testing to do
yet). KDE3.2 is due around the end of the year, and if there is
a KDE3.1.4, it won't change much if anything, so for the short
term I plan to work on adding some plugin r
On Monday 01 September 2003 16:05, Denis Saussus wrote:
> I believe that this should solve your problem. Replace:
>print list.selectedItem()
> with
>print list.selectedItem(1) (or 0 or whatever item you wish to see if it
> is selected)
> i.e. The problem is that Python cannot guess which i
Is the QListBox selectedItem() method implemented? At the risk of looking a
complete newbie, which I am, why does this:
#!/usr/bin/python
import sys
from qt import *
app=QApplication(sys.argv)
list=QListBox()
list.insertItem("Item 1")
list.insertItem("Item 2")
list.insertItem("Item 3")
list.s