show image
not possible to add online images yet but at least not hide it during edit
This commit is contained in:
parent
3896f46817
commit
4247595977
1 changed files with 4 additions and 0 deletions
|
@ -355,6 +355,10 @@ def show_part_changer(ui_element: nicegui.ui.element, part: Part) -> None:
|
||||||
)
|
)
|
||||||
with ui.column() as location_column:
|
with ui.column() as location_column:
|
||||||
update_location_element(location_column)
|
update_location_element(location_column)
|
||||||
|
if hasattr(part, "image"):
|
||||||
|
ui.image("/images_landscape/" + part.image).props("width=50%").props(
|
||||||
|
"height=100px").props("fit='scale-down'")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ in {"__main__", "__mp_main__"}:
|
if __name__ in {"__main__", "__mp_main__"}:
|
||||||
|
|
Loading…
Reference in a new issue