organoid_tracker.gui.option_choose_dialog module
- class organoid_tracker.gui.option_choose_dialog.MultipleComboBox(*args, **kwargs)
Bases:
QComboBox
Combobox that allows multitple items to be selected. Source code from https://gis.stackexchange.com/a/351152
- class Delegate
Bases:
QStyledItemDelegate
- sizeHint(self, option: PySide2.QtWidgets.QStyleOptionViewItem, index: PySide2.QtCore.QModelIndex) PySide2.QtCore.QSize
- staticMetaObject = <PySide2.QtCore.QMetaObject object>
- addItem(self, icon: PySide2.QtGui.QIcon, text: str, userData: Any = Invalid(typing.Any)) None
- addItem(self, text: str, userData: Any = Invalid(typing.Any)) None
- staticMetaObject = <PySide2.QtCore.QMetaObject object>
- updateText()
- organoid_tracker.gui.option_choose_dialog.prompt_list(title: str, header: str, label: str, options: List[str]) Optional[int]
Shows a popup that allows you to choose from the given list of options. If len(options) == 1, then this method doesn’t show a popup, but immediately returns 0. If options is empty, None is returned.