pick_item#

glue_qt.utils.pick_item(items, labels, title='Pick an item', label='Pick an item', default=None)#

Prompt the user to choose an item

Returns the selected item, or None

Parameters:
itemsiterable

Items to choose (can be any Python object)

labelsiterables

Labels for the items to choose

titlestr, optional

The title of the dialog

labelstr, optional

The prompt message