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
addItems(self, texts: Sequence[str]) None
currentData(self, role: int = PySide2.QtCore.Qt.ItemDataRole.UserRole) Any
eventFilter(self, watched: PySide2.QtCore.QObject, event: PySide2.QtCore.QEvent) bool
hidePopup(self) None
resizeEvent(self, e: PySide2.QtGui.QResizeEvent) None
showPopup(self) None
staticMetaObject = <PySide2.QtCore.QMetaObject object>
timerEvent(self, event: PySide2.QtCore.QTimerEvent) None
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.

organoid_tracker.gui.option_choose_dialog.prompt_list_multiple(title: str, header: str, label: str, options: List[str]) Optional[List[int]]

Shows a popup that allows you to choose zero or more options from the given list of options. If options is empty, [] is returned. Returns None if cancelled.