ImageEntry¶
- class tat.image_entry.ImageEntry(parent: PySide6.QtWidgets.QWidget, image: PySide6.QtGui.QImage, name: str, image_path: Optional[str] = None, array_path: Optional[str] = None)¶
- __init__(parent: PySide6.QtWidgets.QWidget, image: PySide6.QtGui.QImage, name: str, image_path: Optional[str] = None, array_path: Optional[str] = None)¶
Create an ImageEntry
- 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.
- isSelected() bool¶
- Returns
True if ImageEntry is currently selected.
- Return type
bool
- mousePressEvent(self, event: PySide6.QtGui.QMouseEvent) None¶
- setSelected(selected: bool) None¶
Set the ImageEntry background to gray if selected is True, else set to the original color.
- Parameters
selected (bool) – Path to the image file.