pick_class#
- glue_qt.utils.pick_class(classes, sort=False, **kwargs)#
Prompt the user to pick from a list of classes using Qt
This is the same as pick_item, but the labels are automatically determined from the classes using the LABEL attribute, and if not set, then the __name__.
Returns the class that was selected, or None
- Parameters:
- classesiterable
The classes to choose from
- titlestr, optional
The title of the dialog
- labelstr, optional
The prompt message