pick_item

glue.utils.qt.pick_item(items, labels, title='Pick an item', label='Pick an item', default=0)[source]

Prompt the user to choose an item

Parameters:
  • items – List of items to choose
  • labels – List of strings to label items
  • title – Optional widget title
  • label – Optional prompt

Returns the selected item, or None