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: PySide6.QtWidgets.QStyleOptionViewItem, index: PySide6.QtCore.QModelIndex | PySide6.QtCore.QPersistentModelIndex, /) PySide6.QtCore.QSize
staticMetaObject = PySide6.QtCore.QMetaObject("Delegate" inherits "QStyledItemDelegate": )
addItem(self, text: str, /, userData: Any = Invalid(typing.Any)) None
addItem(self, icon: PySide6.QtGui.QIcon | PySide6.QtGui.QPixmap, text: str, /, userData: Any = Invalid(typing.Any)) None
addItems(self, texts: collections.abc.Sequence[str], /) None
currentData(self, /, role: int = Instance(Qt.UserRole)) Any
eventFilter(self, watched: PySide6.QtCore.QObject, event: PySide6.QtCore.QEvent, /) bool
hidePopup(self, /) None
resizeEvent(self, e: PySide6.QtGui.QResizeEvent, /) None
showPopup(self, /) None
staticMetaObject = PySide6.QtCore.QMetaObject("MultipleComboBox" inherits "QComboBox": )
timerEvent(self, event: PySide6.QtCore.QTimerEvent, /) None
updateText()
organoid_tracker.gui.option_choose_dialog.prompt_list(title: str, header: str, label: str, options: List[str]) int | None

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]) List[int] | None

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.