Blender's GPU Accelerated UI, Decoupled from it's original codebase. Supports Rust, Python, JS, React, C & C++. Twice as good as GPUI
untrack bytecode
Preetham Pemmasanie2444e09fbbd
diff --git a/.gitignore b/.gitignoreindex 0720523..7a7c4a8 100644--- a/.gitignore+++ b/.gitignore@@ -15,3 +15,5 @@ wheelhouse/# C sources vendored into the published Rust crate (scripts/vendor_c.py)bindings/rust/blenderui-sys/csrc//.claude/worktrees/+__pycache__/+*.pycdiff --git a/bindings/imgui/gen/__pycache__/gen_python.cpython-314.pyc b/bindings/imgui/gen/__pycache__/gen_python.cpython-314.pycdeleted file mode 100644index cf00966..0000000Binary files a/bindings/imgui/gen/__pycache__/gen_python.cpython-314.pyc and /dev/null differdiff --git a/bindings/imgui/gen/__pycache__/gen_rust.cpython-314.pyc b/bindings/imgui/gen/__pycache__/gen_rust.cpython-314.pycdeleted file mode 100644index 9535dfc..0000000Binary files a/bindings/imgui/gen/__pycache__/gen_rust.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/blenderui/__pycache__/__init__.cpython-314.pyc b/bindings/python/blenderui/__pycache__/__init__.cpython-314.pycdeleted file mode 100644index 056d484..0000000Binary files a/bindings/python/blenderui/__pycache__/__init__.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/__pycache__/__init__.cpython-312.pyc b/bindings/python/bui/__pycache__/__init__.cpython-312.pycdeleted file mode 100644index 0399b9b..0000000Binary files a/bindings/python/bui/__pycache__/__init__.cpython-312.pyc and /dev/null differdiff --git a/bindings/python/bui/__pycache__/__init__.cpython-314.pyc b/bindings/python/bui/__pycache__/__init__.cpython-314.pycdeleted file mode 100644index 10f1747..0000000Binary files a/bindings/python/bui/__pycache__/__init__.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/__pycache__/_model.cpython-312.pyc b/bindings/python/bui/__pycache__/_model.cpython-312.pycdeleted file mode 100644index 702c6e0..0000000Binary files a/bindings/python/bui/__pycache__/_model.cpython-312.pyc and /dev/null differdiff --git a/bindings/python/bui/__pycache__/_model.cpython-314.pyc b/bindings/python/bui/__pycache__/_model.cpython-314.pycdeleted file mode 100644index 07d0b2b..0000000Binary files a/bindings/python/bui/__pycache__/_model.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/__pycache__/_realtk.cpython-314.pyc b/bindings/python/bui/__pycache__/_realtk.cpython-314.pycdeleted file mode 100644index 5ed79f3..0000000Binary files a/bindings/python/bui/__pycache__/_realtk.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/__pycache__/_surface.cpython-314.pyc b/bindings/python/bui/__pycache__/_surface.cpython-314.pycdeleted file mode 100644index 1ab37a9..0000000Binary files a/bindings/python/bui/__pycache__/_surface.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/__pycache__/_version.cpython-314.pyc b/bindings/python/bui/__pycache__/_version.cpython-314.pycdeleted file mode 100644index 4ebfb43..0000000Binary files a/bindings/python/bui/__pycache__/_version.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/__pycache__/filebrowser.cpython-314.pyc b/bindings/python/bui/__pycache__/filebrowser.cpython-314.pycdeleted file mode 100644index 71512b5..0000000Binary files a/bindings/python/bui/__pycache__/filebrowser.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/__pycache__/host.cpython-314.pyc b/bindings/python/bui/__pycache__/host.cpython-314.pycdeleted file mode 100644index 9edc001..0000000Binary files a/bindings/python/bui/__pycache__/host.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/__pycache__/imgui.cpython-314.pyc b/bindings/python/bui/__pycache__/imgui.cpython-314.pycdeleted file mode 100644index d356eb6..0000000Binary files a/bindings/python/bui/__pycache__/imgui.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/__pycache__/qt.cpython-312.pyc b/bindings/python/bui/__pycache__/qt.cpython-312.pycdeleted file mode 100644index 2d6d8dd..0000000Binary files a/bindings/python/bui/__pycache__/qt.cpython-312.pyc and /dev/null differdiff --git a/bindings/python/bui/__pycache__/qt.cpython-314.pyc b/bindings/python/bui/__pycache__/qt.cpython-314.pycdeleted file mode 100644index 60053f6..0000000Binary files a/bindings/python/bui/__pycache__/qt.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/__pycache__/qtsyntax.cpython-312.pyc b/bindings/python/bui/__pycache__/qtsyntax.cpython-312.pycdeleted file mode 100644index 3b42516..0000000Binary files a/bindings/python/bui/__pycache__/qtsyntax.cpython-312.pyc and /dev/null differdiff --git a/bindings/python/bui/__pycache__/qtsyntax.cpython-314.pyc b/bindings/python/bui/__pycache__/qtsyntax.cpython-314.pycdeleted file mode 100644index e25c954..0000000Binary files a/bindings/python/bui/__pycache__/qtsyntax.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/__pycache__/svg.cpython-312.pyc b/bindings/python/bui/__pycache__/svg.cpython-312.pycdeleted file mode 100644index 77f676c..0000000Binary files a/bindings/python/bui/__pycache__/svg.cpython-312.pyc and /dev/null differdiff --git a/bindings/python/bui/__pycache__/svg.cpython-314.pyc b/bindings/python/bui/__pycache__/svg.cpython-314.pycdeleted file mode 100644index cf42a3a..0000000Binary files a/bindings/python/bui/__pycache__/svg.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/__pycache__/theme.cpython-314.pyc b/bindings/python/bui/__pycache__/theme.cpython-314.pycdeleted file mode 100644index 9b873db..0000000Binary files a/bindings/python/bui/__pycache__/theme.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/__pycache__/tkbackend.cpython-312.pyc b/bindings/python/bui/__pycache__/tkbackend.cpython-312.pycdeleted file mode 100644index 1209d6a..0000000Binary files a/bindings/python/bui/__pycache__/tkbackend.cpython-312.pyc and /dev/null differdiff --git a/bindings/python/bui/__pycache__/tkbackend.cpython-314.pyc b/bindings/python/bui/__pycache__/tkbackend.cpython-314.pycdeleted file mode 100644index e010ed7..0000000Binary files a/bindings/python/bui/__pycache__/tkbackend.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/components/__pycache__/__init__.cpython-314.pyc b/bindings/python/bui/components/__pycache__/__init__.cpython-314.pycdeleted file mode 100644index 930bf50..0000000Binary files a/bindings/python/bui/components/__pycache__/__init__.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/components/__pycache__/app.cpython-314.pyc b/bindings/python/bui/components/__pycache__/app.cpython-314.pycdeleted file mode 100644index c339c88..0000000Binary files a/bindings/python/bui/components/__pycache__/app.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/components/__pycache__/containers.cpython-314.pyc b/bindings/python/bui/components/__pycache__/containers.cpython-314.pycdeleted file mode 100644index ae25aa4..0000000Binary files a/bindings/python/bui/components/__pycache__/containers.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/components/__pycache__/core.cpython-314.pyc b/bindings/python/bui/components/__pycache__/core.cpython-314.pycdeleted file mode 100644index a3db557..0000000Binary files a/bindings/python/bui/components/__pycache__/core.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/components/__pycache__/editors.cpython-314.pyc b/bindings/python/bui/components/__pycache__/editors.cpython-314.pycdeleted file mode 100644index f6e8520..0000000Binary files a/bindings/python/bui/components/__pycache__/editors.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/components/__pycache__/menus.cpython-314.pyc b/bindings/python/bui/components/__pycache__/menus.cpython-314.pycdeleted file mode 100644index 60151e1..0000000Binary files a/bindings/python/bui/components/__pycache__/menus.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/components/__pycache__/nodes.cpython-314.pyc b/bindings/python/bui/components/__pycache__/nodes.cpython-314.pycdeleted file mode 100644index c43cf53..0000000Binary files a/bindings/python/bui/components/__pycache__/nodes.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/components/__pycache__/templates.cpython-314.pyc b/bindings/python/bui/components/__pycache__/templates.cpython-314.pycdeleted file mode 100644index 18e1a93..0000000Binary files a/bindings/python/bui/components/__pycache__/templates.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/components/__pycache__/views.cpython-314.pyc b/bindings/python/bui/components/__pycache__/views.cpython-314.pycdeleted file mode 100644index 7aa44a4..0000000Binary files a/bindings/python/bui/components/__pycache__/views.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/components/__pycache__/widgets.cpython-314.pyc b/bindings/python/bui/components/__pycache__/widgets.cpython-314.pycdeleted file mode 100644index f00a2a6..0000000Binary files a/bindings/python/bui/components/__pycache__/widgets.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/tksyntax/__pycache__/__init__.cpython-314.pyc b/bindings/python/bui/tksyntax/__pycache__/__init__.cpython-314.pycdeleted file mode 100644index b0542e6..0000000Binary files a/bindings/python/bui/tksyntax/__pycache__/__init__.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/tksyntax/__pycache__/__main__.cpython-314.pyc b/bindings/python/bui/tksyntax/__pycache__/__main__.cpython-314.pycdeleted file mode 100644index c3e3959..0000000Binary files a/bindings/python/bui/tksyntax/__pycache__/__main__.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/tksyntax/__pycache__/_core.cpython-314.pyc b/bindings/python/bui/tksyntax/__pycache__/_core.cpython-314.pycdeleted file mode 100644index a920f1d..0000000Binary files a/bindings/python/bui/tksyntax/__pycache__/_core.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/tksyntax/__pycache__/_images.cpython-314.pyc b/bindings/python/bui/tksyntax/__pycache__/_images.cpython-314.pycdeleted file mode 100644index a52ca38..0000000Binary files a/bindings/python/bui/tksyntax/__pycache__/_images.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/tksyntax/__pycache__/_widgets.cpython-314.pyc b/bindings/python/bui/tksyntax/__pycache__/_widgets.cpython-314.pycdeleted file mode 100644index d8c9cc2..0000000Binary files a/bindings/python/bui/tksyntax/__pycache__/_widgets.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/tksyntax/__pycache__/colorchooser.cpython-314.pyc b/bindings/python/bui/tksyntax/__pycache__/colorchooser.cpython-314.pycdeleted file mode 100644index 1a24141..0000000Binary files a/bindings/python/bui/tksyntax/__pycache__/colorchooser.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/tksyntax/__pycache__/commondialog.cpython-314.pyc b/bindings/python/bui/tksyntax/__pycache__/commondialog.cpython-314.pycdeleted file mode 100644index 86dd2a6..0000000Binary files a/bindings/python/bui/tksyntax/__pycache__/commondialog.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/tksyntax/__pycache__/constants.cpython-314.pyc b/bindings/python/bui/tksyntax/__pycache__/constants.cpython-314.pycdeleted file mode 100644index 2169931..0000000Binary files a/bindings/python/bui/tksyntax/__pycache__/constants.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/tksyntax/__pycache__/dialog.cpython-314.pyc b/bindings/python/bui/tksyntax/__pycache__/dialog.cpython-314.pycdeleted file mode 100644index 3b3f09d..0000000Binary files a/bindings/python/bui/tksyntax/__pycache__/dialog.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/tksyntax/__pycache__/filedialog.cpython-314.pyc b/bindings/python/bui/tksyntax/__pycache__/filedialog.cpython-314.pycdeleted file mode 100644index ff3f523..0000000Binary files a/bindings/python/bui/tksyntax/__pycache__/filedialog.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/tksyntax/__pycache__/font.cpython-314.pyc b/bindings/python/bui/tksyntax/__pycache__/font.cpython-314.pycdeleted file mode 100644index 9ca2508..0000000Binary files a/bindings/python/bui/tksyntax/__pycache__/font.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/tksyntax/__pycache__/messagebox.cpython-314.pyc b/bindings/python/bui/tksyntax/__pycache__/messagebox.cpython-314.pycdeleted file mode 100644index b569047..0000000Binary files a/bindings/python/bui/tksyntax/__pycache__/messagebox.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/tksyntax/__pycache__/scrolledtext.cpython-314.pyc b/bindings/python/bui/tksyntax/__pycache__/scrolledtext.cpython-314.pycdeleted file mode 100644index feadff8..0000000Binary files a/bindings/python/bui/tksyntax/__pycache__/scrolledtext.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/tksyntax/__pycache__/simpledialog.cpython-314.pyc b/bindings/python/bui/tksyntax/__pycache__/simpledialog.cpython-314.pycdeleted file mode 100644index 08e2987..0000000Binary files a/bindings/python/bui/tksyntax/__pycache__/simpledialog.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/bui/tksyntax/__pycache__/ttk.cpython-314.pyc b/bindings/python/bui/tksyntax/__pycache__/ttk.cpython-314.pycdeleted file mode 100644index ae80adf..0000000Binary files a/bindings/python/bui/tksyntax/__pycache__/ttk.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/tests/__pycache__/test_components.cpython-314.pyc b/bindings/python/tests/__pycache__/test_components.cpython-314.pycdeleted file mode 100644index 82a572d..0000000Binary files a/bindings/python/tests/__pycache__/test_components.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/tests/__pycache__/test_tk_compat.cpython-314.pyc b/bindings/python/tests/__pycache__/test_tk_compat.cpython-314.pycdeleted file mode 100644index c1b1678..0000000Binary files a/bindings/python/tests/__pycache__/test_tk_compat.cpython-314.pyc and /dev/null differdiff --git a/bindings/python/tests/__pycache__/test_tk_input.cpython-314.pyc b/bindings/python/tests/__pycache__/test_tk_input.cpython-314.pycdeleted file mode 100644index 85708a2..0000000Binary files a/bindings/python/tests/__pycache__/test_tk_input.cpython-314.pyc and /dev/null differdiff --git a/examples/__pycache__/components_demo.cpython-314.pyc b/examples/__pycache__/components_demo.cpython-314.pycdeleted file mode 100644index 698b8bf..0000000Binary files a/examples/__pycache__/components_demo.cpython-314.pyc and /dev/null differdiff --git a/examples/__pycache__/qt_syntax_demo.cpython-314.pyc b/examples/__pycache__/qt_syntax_demo.cpython-314.pycdeleted file mode 100644index 6b5e887..0000000Binary files a/examples/__pycache__/qt_syntax_demo.cpython-314.pyc and /dev/null differdiff --git a/examples/__pycache__/tk_unchanged_app.cpython-314.pyc b/examples/__pycache__/tk_unchanged_app.cpython-314.pycdeleted file mode 100644index a8d2924..0000000Binary files a/examples/__pycache__/tk_unchanged_app.cpython-314.pyc and /dev/null differdiff --git a/examples/site/__pycache__/geometry_nodes.cpython-314.pyc b/examples/site/__pycache__/geometry_nodes.cpython-314.pycdeleted file mode 100644index af6d4dd..0000000Binary files a/examples/site/__pycache__/geometry_nodes.cpython-314.pyc and /dev/null differdiff --git a/examples/site/__pycache__/imgui_inspector.cpython-314.pyc b/examples/site/__pycache__/imgui_inspector.cpython-314.pycdeleted file mode 100644index 1aa9140..0000000Binary files a/examples/site/__pycache__/imgui_inspector.cpython-314.pyc and /dev/null differdiff --git a/examples/site/__pycache__/qt_material.cpython-314.pyc b/examples/site/__pycache__/qt_material.cpython-314.pycdeleted file mode 100644index 992c801..0000000Binary files a/examples/site/__pycache__/qt_material.cpython-314.pyc and /dev/null differdiff --git a/examples/site/__pycache__/render_props.cpython-314.pyc b/examples/site/__pycache__/render_props.cpython-314.pycdeleted file mode 100644index 5916f1b..0000000Binary files a/examples/site/__pycache__/render_props.cpython-314.pyc and /dev/null differdiff --git a/examples/site/__pycache__/tk_export.cpython-314.pyc b/examples/site/__pycache__/tk_export.cpython-314.pycdeleted file mode 100644index ffbaf33..0000000Binary files a/examples/site/__pycache__/tk_export.cpython-314.pyc and /dev/null differdiff --git a/examples/site/__pycache__/ttk_queue.cpython-314.pyc b/examples/site/__pycache__/ttk_queue.cpython-314.pycdeleted file mode 100644index 4f610f4..0000000Binary files a/examples/site/__pycache__/ttk_queue.cpython-314.pyc and /dev/null differdiff --git a/tools/__pycache__/blender_compare.cpython-314.pyc b/tools/__pycache__/blender_compare.cpython-314.pycdeleted file mode 100644index 005488a..0000000Binary files a/tools/__pycache__/blender_compare.cpython-314.pyc and /dev/null differdiff --git a/tools/__pycache__/kit_icons_src.cpython-314.pyc b/tools/__pycache__/kit_icons_src.cpython-314.pycdeleted file mode 100644index a2243ad..0000000Binary files a/tools/__pycache__/kit_icons_src.cpython-314.pyc and /dev/null differdiff --git a/tools/__pycache__/png_pixels.cpython-314.pyc b/tools/__pycache__/png_pixels.cpython-314.pycdeleted file mode 100644index 6fd4a57..0000000Binary files a/tools/__pycache__/png_pixels.cpython-314.pyc and /dev/null differdiff --git a/tools/__pycache__/pngopt.cpython-314.pyc b/tools/__pycache__/pngopt.cpython-314.pycdeleted file mode 100644index e1c858c..0000000Binary files a/tools/__pycache__/pngopt.cpython-314.pyc and /dev/null differdiff --git a/tools/__pycache__/site_shots_py.cpython-314.pyc b/tools/__pycache__/site_shots_py.cpython-314.pycdeleted file mode 100644index 3f9f395..0000000Binary files a/tools/__pycache__/site_shots_py.cpython-314.pyc and /dev/null differdiff --git a/tools/bump_version.py b/tools/bump_version.pyindex 1af60c1..1fdecfb 100644--- a/tools/bump_version.py+++ b/tools/bump_version.py@@ -18,8 +18,9 @@ Where the version lives (one source of truth per registry, all moved together):* Python: `bindings/python/bui/_version.py` (the wheel reads it).* Rust: `[workspace.package]` in `bindings/rust/Cargo.toml`, and the `version = "..."` of everysibling path dependency (`blenderui-sys = { path = "...", version = "..." }`).-* npm (only with `--npm`): every package in `bindings/package.json`'s workspaces moves to the- same version, and their dependency on `@blender-ui/native` with it. npm versions are otherwise independent of the tag.+* npm (only with `--npm`): every already-published package in `bindings/package.json`'s workspaces+ moves to the same version; a package not on npm yet keeps its own first version. All of them+ follow `@blender-ui/native` in their dependency range. npm versions are otherwise independent of the tag.* `CHANGELOG.md`: `[Unreleased]` becomes a dated section and a fresh `[Unreleased]` opens.* The lock files (`Cargo.lock`, `bindings/package-lock.json`) are refreshed (best effort).@@ -32,6 +33,8 @@ import jsonimport reimport subprocessimport sys+import urllib.error+import urllib.requestfrom pathlib import Pathfrom check_versions import npm_packages@@ -76,6 +79,17 @@ def next_version(cur: str, what: str) -> str:sys.exit(f"'{what}' is not major, minor, patch or X.Y.Z")+def on_npm(name: str) -> bool:+ """Whether the package is already published. A new package keeps its own first version."""+ try:+ with urllib.request.urlopen(f"https://registry.npmjs.org/{name.replace('/', '%2F')}", timeout=20):+ return True+ except urllib.error.HTTPError as e:+ if e.code == 404:+ return False+ raise++def plan_edits(new: str, npm: str | None) -> dict[Path, str]:"""Every file's new text, keyed by path. Nothing is written here."""edits: dict[Path, str] = {}@@ -108,7 +122,8 @@ def plan_edits(new: str, npm: str | None) -> dict[Path, str]:for pkg in npm_packages():path = ROOT / "bindings" / pkg / "package.json"text = read(path)- text = re.sub(r'("version"\s*:\s*")[^"]+(")', rf"\g<1>{npm}\g<2>", text, count=1)+ if on_npm(json.loads(text)["name"]):+ text = re.sub(r'("version"\s*:\s*")[^"]+(")', rf"\g<1>{npm}\g<2>", text, count=1)text = re.sub(r'("@blender-ui/native"\s*:\s*"\^)[^"]+(")', rf"\g<1>{npm}\g<2>", text)put(path, text)