CheckableImageEntry¶
- class tat.checkable_image_entry.CheckableImageEntry(parent: PySide6.QtWidgets.QWidget, image: PySide6.QtGui.QImage, name: str, image_path: Optional[str] = None, array_path: Optional[str] = None, default_check: bool = True)¶
- __init__(parent: PySide6.QtWidgets.QWidget, image: PySide6.QtGui.QImage, name: str, image_path: Optional[str] = None, array_path: Optional[str] = None, default_check: bool = True)¶
Initialize a CheckableImageEntry
- Parameters
parent (QWidget) – The parent containing the ImageEntry.
image (QImage) – The image that will be draw in the thumbnail.
name (str) – The name that will be shown below the thumbnail. Also used for image basename.
image_path (str, optional) – Path to the image file.
array_path (str, optional) – Path to the Numpy array file.
default_check (bool) – If True, the checkbox will be checked.
- isChecked() bool¶
- Returns
True if checkbox is checked, False otherwise.
- Return type
bool
- setChecked(checked) None¶
Changes the entry checkbox state :param checked: If True, set the checkbox to checked, otherwise set to unchecked.