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 item in the listbox you
> mean to query.

The Qt documentation says the method doesn't take a parameter. I'm trying to 
find out which item in the listbox is selected. AFAICS you just call 
selectedItem() and it returns the currently selected QListBoxItem.

I tried what you said and it didn't make any difference. The method doesn't 
seem to be known, regardless of whether I give it a parameter or not.

-- 
> eatapple
core dump

_______________________________________________
PyKDE mailing list    [EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to