[PyKDE] ListBoxes Problem
Jim Bublitz
jbublitz at nwinternet.com
Thu Sep 23 23:29:15 BST 2004
On Thursday 23 September 2004 12:04, Eli Yukelzon wrote:
> Hi there.
> I'm new to this mailing list and not sure that this question is
> appropriate, but I'll try anyway :)
> I have a form with two listboxes and one button, which is supposed to
> delete an item from the currently selected listbox. The problem is I
> am unable to find a way to distinguish which one is focused, becuase
> both currentItem() and selectedItem() are valid for bot listboxes.
> How should I address this?
All widgets inherit hasFocus() from QWidget, which will return True if the
widget being tested has the focus.
You can find in the QWidget class section of the Qt docs. The QListBox docs
will only show new or modified methods, not all of the methods inherited from
base classes.
Jim
More information about the PyQt
mailing list