
__all__ = ["ImagePropertyFrame"]

import omni.ui as ui
from ..base_frame import WidgetCollectionFrame
from ..create_widget import PropertyType


class ImagePropertyFrame(WidgetCollectionFrame):
    def __init__(self, frame_label: str, widget: ui.Widget) -> None:
        super().__init__(frame_label, widget)

    def _build_ui(self):

        self._add_property(self._widget, "source_url", PropertyType.STRING, label_width=80)
        self._add_property(self._widget, "alignment", PropertyType.ENUM, label_width=80)
        self._add_property(self._widget, "fill_policy", PropertyType.ENUM, label_width=80)
