MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / progress

Function progress

src/python/lfs_plugins/rml_widgets.py:378–394  ·  view source on GitHub ↗

Create a progress bar with optional text overlay.

(container, id, value=0.0, label="")

Source from the content-addressed store, hash-verified

376
377
378def progress(container, id, value=0.0, label=""):
379 """Create a progress bar with optional text overlay."""
380 wrapper = container.append_child("div")
381 wrapper.set_property("position", "relative")
382
383 prog = wrapper.append_child("progress")
384 prog.set_id(id)
385 prog.set_attribute("value", str(value))
386 prog.set_attribute("max", "1")
387
388 if label:
389 text = wrapper.append_child("span")
390 text.set_id(f"{id}-text")
391 text.set_class_names("progress__text")
392 text.set_text(label)
393
394 return wrapper
395
396
397def color_swatch(container, id, r=0, g=0, b=0, data_prop=""):

Callers 8

build_octree_lodFunction · 0.85
build_bhatt_lodFunction · 0.85
report_progressFunction · 0.85
patchRadMetaLinksPlaneFunction · 0.85
build_rad_meta_sidecarFunction · 0.85
rechunk_rad_lodFunction · 0.85
mesh_to_splatFunction · 0.85
read_content_with_lengthFunction · 0.85

Calls 6

append_childMethod · 0.45
set_propertyMethod · 0.45
set_idMethod · 0.45
set_attributeMethod · 0.45
set_class_namesMethod · 0.45
set_textMethod · 0.45

Tested by

no test coverage detected