dragongui 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dragongui-1.0.0/CHANGELOG.md +32 -0
- dragongui-1.0.0/LICENSE +21 -0
- dragongui-1.0.0/PKG-INFO +611 -0
- dragongui-1.0.0/README.md +565 -0
- dragongui-1.0.0/RELEASING.md +53 -0
- dragongui-1.0.0/THIRD_PARTY_NOTICES.md +53 -0
- dragongui-1.0.0/THIRD_PARTY_RUST_NOTICES.md +10553 -0
- dragongui-1.0.0/about.hbs +26 -0
- dragongui-1.0.0/about.toml +25 -0
- dragongui-1.0.0/benches/bench_scatter.py +132 -0
- dragongui-1.0.0/docs/css-capabilities-reference.md +1569 -0
- dragongui-1.0.0/docs/css-cascade-optimization.md +261 -0
- dragongui-1.0.0/docs/css-styling.md +1225 -0
- dragongui-1.0.0/docs/dragon-gui-benchmark-audit.md +149 -0
- dragongui-1.0.0/docs/dragon-gui-benchmark-pie-charts.md +102 -0
- dragongui-1.0.0/docs/extension-widgets.md +90 -0
- dragongui-1.0.0/docs/layout-styling-release-notes.md +74 -0
- dragongui-1.0.0/docs/layout.md +358 -0
- dragongui-1.0.0/docs/library-overview.md +700 -0
- dragongui-1.0.0/docs/scatter3d-point-depth-fix.md +104 -0
- dragongui-1.0.0/docs/scatter3d-streaming-colormap-fix.md +188 -0
- dragongui-1.0.0/docs/widgets-reference.md +2022 -0
- dragongui-1.0.0/docs/widgets.md +284 -0
- dragongui-1.0.0/examples/aurora_command_center_demo.py +832 -0
- dragongui-1.0.0/examples/cathode_ops_stress_demo.py +2698 -0
- dragongui-1.0.0/examples/client_window_chrome_demo.py +125 -0
- dragongui-1.0.0/examples/icon_theme_demo.py +78 -0
- dragongui-1.0.0/examples/live_update_batch_demo.py +69 -0
- dragongui-1.0.0/examples/live_update_producer_safety_probe.py +201 -0
- dragongui-1.0.0/examples/nexus_studio_stress_demo.py +2114 -0
- dragongui-1.0.0/examples/node_graph_binding_playground_probe.py +797 -0
- dragongui-1.0.0/examples/node_graph_editor_probe.py +1128 -0
- dragongui-1.0.0/examples/responsive_app_template.py +174 -0
- dragongui-1.0.0/examples/theme_forge_stress_demo.py +5713 -0
- dragongui-1.0.0/native/Cargo.lock +4279 -0
- dragongui-1.0.0/native/Cargo.toml +57 -0
- dragongui-1.0.0/native/examples/webview2_standalone_probe.rs +476 -0
- dragongui-1.0.0/native/src/app.rs +133 -0
- dragongui-1.0.0/native/src/command_queue_model.rs +873 -0
- dragongui-1.0.0/native/src/commands.rs +4043 -0
- dragongui-1.0.0/native/src/css_style.rs +26451 -0
- dragongui-1.0.0/native/src/document.rs +3168 -0
- dragongui-1.0.0/native/src/error.rs +20 -0
- dragongui-1.0.0/native/src/events.rs +2888 -0
- dragongui-1.0.0/native/src/framework.dg.css +573 -0
- dragongui-1.0.0/native/src/html_report_webview.rs +931 -0
- dragongui-1.0.0/native/src/icons.rs +395 -0
- dragongui-1.0.0/native/src/image_widget.rs +1320 -0
- dragongui-1.0.0/native/src/image_widget.wgsl +128 -0
- dragongui-1.0.0/native/src/layout.rs +16011 -0
- dragongui-1.0.0/native/src/lib.rs +174 -0
- dragongui-1.0.0/native/src/overlays.rs +594 -0
- dragongui-1.0.0/native/src/paint.rs +1590 -0
- dragongui-1.0.0/native/src/primitives/line_plot.wgsl +312 -0
- dragongui-1.0.0/native/src/primitives/line_segment.wgsl +95 -0
- dragongui-1.0.0/native/src/primitives/mod.rs +22863 -0
- dragongui-1.0.0/native/src/primitives/rect.wgsl +671 -0
- dragongui-1.0.0/native/src/primitives/simple_rect.wgsl +103 -0
- dragongui-1.0.0/native/src/resources.rs +829 -0
- dragongui-1.0.0/native/src/runtime.rs +29977 -0
- dragongui-1.0.0/native/src/scatter/camera.rs +180 -0
- dragongui-1.0.0/native/src/scatter/colormap.rs +169 -0
- dragongui-1.0.0/native/src/scatter/compact_points.wgsl +123 -0
- dragongui-1.0.0/native/src/scatter/composite.wgsl +41 -0
- dragongui-1.0.0/native/src/scatter/grid.rs +989 -0
- dragongui-1.0.0/native/src/scatter/lines.wgsl +32 -0
- dragongui-1.0.0/native/src/scatter/mesh.wgsl +35 -0
- dragongui-1.0.0/native/src/scatter/mod.rs +4946 -0
- dragongui-1.0.0/native/src/scatter/overlay.wgsl +26 -0
- dragongui-1.0.0/native/src/scatter/points.wgsl +104 -0
- dragongui-1.0.0/native/src/scatter/rounded_mask.wgsl +61 -0
- dragongui-1.0.0/native/src/style.rs +3505 -0
- dragongui-1.0.0/native/src/table.rs +397 -0
- dragongui-1.0.0/native/src/text/mod.rs +9787 -0
- dragongui-1.0.0/native/src/theme.rs +790 -0
- dragongui-1.0.0/native/src/toast.rs +317 -0
- dragongui-1.0.0/native/src/widget_capabilities.rs +271 -0
- dragongui-1.0.0/plans/README.md +46 -0
- dragongui-1.0.0/plans/V2/css-styling-system-part-2-widget-parts.md +1143 -0
- dragongui-1.0.0/plans/V2/css-styling-system-part-3-web-capabilities.md +1845 -0
- dragongui-1.0.0/plans/V2/css-styling-system.md +1082 -0
- dragongui-1.0.0/plans/V2/scatter3d-completion-plan.md +1209 -0
- dragongui-1.0.0/plans/V2/scatter3d-dragonsci-parity-plan.md +620 -0
- dragongui-1.0.0/plans/V2/thread-monitor-widget.md +618 -0
- dragongui-1.0.0/plans/V2/widget-ergonomics-and-missing-controls.md +652 -0
- dragongui-1.0.0/plans/V3/agent-help-and-guidance.md +325 -0
- dragongui-1.0.0/plans/V3/css-and-scatter-followup-plan.md +466 -0
- dragongui-1.0.0/plans/V3/grid-system-ergonomics.md +296 -0
- dragongui-1.0.0/plans/V3/histogram-widget.md +534 -0
- dragongui-1.0.0/plans/V3/html-report-viewer.md +331 -0
- dragongui-1.0.0/plans/V3/layout-failure-inventory.md +468 -0
- dragongui-1.0.0/plans/V3/layout-resilience-and-composition.md +329 -0
- dragongui-1.0.0/plans/V3/library-startup-loading-screen.md +391 -0
- dragongui-1.0.0/plans/V3/line-plot-toolbar-and-view-controls.md +330 -0
- dragongui-1.0.0/plans/V3/line-plot-widget.md +348 -0
- dragongui-1.0.0/plans/V3/nonblocking-data-work-and-streaming.md +294 -0
- dragongui-1.0.0/plans/V3/pie-chart-widget.md +435 -0
- dragongui-1.0.0/plans/V3/scatter-pi-rendering-optimizations.md +374 -0
- dragongui-1.0.0/plans/cathode-performance-remediation.md +1487 -0
- dragongui-1.0.0/plans/css-theming-system-improvement-plan.md +2180 -0
- dragongui-1.0.0/plans/gui-framework-performance-comparison.md +339 -0
- dragongui-1.0.0/plans/layout-styling-evolution.md +2193 -0
- dragongui-1.0.0/plans/layout-system-remediation.md +1601 -0
- dragongui-1.0.0/plans/live-update-performance-handoff-2026-07-31.md +1408 -0
- dragongui-1.0.0/plans/live-update-performance-optimization-plan.md +3797 -0
- dragongui-1.0.0/plans/pypi-publish-readiness-audit.md +669 -0
- dragongui-1.0.0/plans/runtime-startup-backpressure-remediation.md +728 -0
- dragongui-1.0.0/plans/theme-forge-performance-remediation.md +957 -0
- dragongui-1.0.0/plans/window-chrome-platform-validation.md +131 -0
- dragongui-1.0.0/pyproject.toml +109 -0
- dragongui-1.0.0/python/dragongui/__init__.py +372 -0
- dragongui-1.0.0/python/dragongui/_backend.py +202 -0
- dragongui-1.0.0/python/dragongui/_widget_capabilities.py +85 -0
- dragongui-1.0.0/python/dragongui/agent_messages.py +345 -0
- dragongui-1.0.0/python/dragongui/agent_session.py +233 -0
- dragongui-1.0.0/python/dragongui/app.py +662 -0
- dragongui-1.0.0/python/dragongui/assets/__init__.py +0 -0
- dragongui-1.0.0/python/dragongui/assets/terminal/__init__.py +0 -0
- dragongui-1.0.0/python/dragongui/assets/terminal/addon-fit.js +2 -0
- dragongui-1.0.0/python/dragongui/assets/terminal/xterm.css +218 -0
- dragongui-1.0.0/python/dragongui/assets/terminal/xterm.js +2 -0
- dragongui-1.0.0/python/dragongui/colormap.py +135 -0
- dragongui-1.0.0/python/dragongui/components.py +283 -0
- dragongui-1.0.0/python/dragongui/dataframe.py +309 -0
- dragongui-1.0.0/python/dragongui/diagnostics.py +526 -0
- dragongui-1.0.0/python/dragongui/dialogs.py +159 -0
- dragongui-1.0.0/python/dragongui/icons.py +228 -0
- dragongui-1.0.0/python/dragongui/manual.py +4889 -0
- dragongui-1.0.0/python/dragongui/node_graph.py +8930 -0
- dragongui-1.0.0/python/dragongui/notifications.py +60 -0
- dragongui-1.0.0/python/dragongui/py.typed +1 -0
- dragongui-1.0.0/python/dragongui/runtime.py +2688 -0
- dragongui-1.0.0/python/dragongui/terminal.py +882 -0
- dragongui-1.0.0/python/dragongui/theme.py +140 -0
- dragongui-1.0.0/python/dragongui/thread_monitor.py +806 -0
- dragongui-1.0.0/python/dragongui/vdom.py +540 -0
- dragongui-1.0.0/python/dragongui/widget_css_capabilities.json +376 -0
- dragongui-1.0.0/python/dragongui/widgets.py +12971 -0
- dragongui-1.0.0/start.bat +39 -0
- dragongui-1.0.0/tests/conftest.py +25 -0
- dragongui-1.0.0/tests/test_all_features_professional_demo.py +59 -0
- dragongui-1.0.0/tests/test_components.py +1016 -0
- dragongui-1.0.0/tests/test_diagnostics.py +61 -0
- dragongui-1.0.0/tests/test_gui_benchmark_validation.py +328 -0
- dragongui-1.0.0/tests/test_layout_audit.py +507 -0
- dragongui-1.0.0/tests/test_python_api.py +16040 -0
- dragongui-1.0.0/tests/test_theme_forge_stress_demo.py +157 -0
- dragongui-1.0.0/tests/test_vdom.py +435 -0
- dragongui-1.0.0/tests/test_visual_audit.py +1311 -0
- dragongui-1.0.0/tests/test_widget_css_capabilities.py +7 -0
- dragongui-1.0.0/tools/check_release.py +135 -0
- dragongui-1.0.0/tools/generate_widget_css_capabilities.py +106 -0
- dragongui-1.0.0/tools/packaged_wheel_smoke.py +103 -0
- dragongui-1.0.0/tools/profile_cathode_stress.py +254 -0
- dragongui-1.0.0/tools/profile_retained_primitive_smoke.py +86 -0
- dragongui-1.0.0/tools/profile_subsystem_stress.py +512 -0
- dragongui-1.0.0/tools/profile_theme_forge_stress.py +210 -0
- dragongui-1.0.0/tools/run_cathode_performance_matrix.py +257 -0
- dragongui-1.0.0/tools/smoke_css_demos.py +800 -0
- dragongui-1.0.0/tools/visual_audit.py +2979 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to DragonGUI are documented here. The project follows
|
|
4
|
+
[Semantic Versioning](https://semver.org/) from version 1.0.0 onward.
|
|
5
|
+
|
|
6
|
+
## [1.0.0] - 2026-08-05
|
|
7
|
+
|
|
8
|
+
First stable production release.
|
|
9
|
+
|
|
10
|
+
### Highlights
|
|
11
|
+
|
|
12
|
+
- GPU-native desktop application runtime backed by Rust, wgpu, winit, Taffy,
|
|
13
|
+
and glyphon.
|
|
14
|
+
- Stable Python API for application shells, layouts, controls, charts, tables,
|
|
15
|
+
dialogs, themes, components, live updates, and retained resources.
|
|
16
|
+
- GPU scatter, line, histogram, bar, heatmap, pie, and custom paint widgets.
|
|
17
|
+
- CSS styling, responsive layout, transitions, animations, widget parts, and
|
|
18
|
+
runtime theme replacement.
|
|
19
|
+
- Windows x86-64, Linux x86-64, macOS Intel, and macOS Apple Silicon wheels
|
|
20
|
+
supporting Python 3.12 and 3.13 through the CPython stable ABI.
|
|
21
|
+
- PyO3 0.29 and refreshed transitive dependencies with zero known RustSec
|
|
22
|
+
vulnerabilities at release preparation time.
|
|
23
|
+
- Complete MIT project licensing and generated third-party dependency notices.
|
|
24
|
+
|
|
25
|
+
### Compatibility
|
|
26
|
+
|
|
27
|
+
- `NodeGraph` remains experimental and is not covered by the stable 1.x API
|
|
28
|
+
compatibility guarantee.
|
|
29
|
+
- Python 3.12 or newer is required; the 1.0.0 validation matrix covers Python
|
|
30
|
+
3.12 and 3.13.
|
|
31
|
+
|
|
32
|
+
[1.0.0]: https://github.com/NKocur/DragonGui/releases/tag/v1.0.0
|
dragongui-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 DragonFrame contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
dragongui-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,611 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: dragongui
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
5
|
+
Classifier: Intended Audience :: Developers
|
|
6
|
+
Classifier: Intended Audience :: Science/Research
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
10
|
+
Classifier: Programming Language :: Rust
|
|
11
|
+
Classifier: Typing :: Typed
|
|
12
|
+
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
13
|
+
Classifier: Topic :: Software Development :: User Interfaces
|
|
14
|
+
Requires-Dist: pandas>=2 ; extra == 'dataframe'
|
|
15
|
+
Requires-Dist: polars>=1 ; extra == 'dataframe'
|
|
16
|
+
Requires-Dist: maturin>=1.8,<2 ; extra == 'dev'
|
|
17
|
+
Requires-Dist: pytest>=8 ; extra == 'dev'
|
|
18
|
+
Requires-Dist: ruff>=0.8 ; extra == 'dev'
|
|
19
|
+
Requires-Dist: numpy>=1.24 ; extra == 'dev'
|
|
20
|
+
Requires-Dist: furo>=2024.8 ; extra == 'docs'
|
|
21
|
+
Requires-Dist: myst-parser>=4 ; extra == 'docs'
|
|
22
|
+
Requires-Dist: sphinx>=8 ; extra == 'docs'
|
|
23
|
+
Requires-Dist: sphinx-autodoc-typehints>=3 ; extra == 'docs'
|
|
24
|
+
Requires-Dist: numpy>=1.24 ; extra == 'numpy'
|
|
25
|
+
Requires-Dist: pandas>=2 ; extra == 'pandas'
|
|
26
|
+
Requires-Dist: polars>=1 ; extra == 'polars'
|
|
27
|
+
Requires-Dist: pywinpty>=2 ; platform_system == 'Windows' and extra == 'terminal'
|
|
28
|
+
Provides-Extra: dataframe
|
|
29
|
+
Provides-Extra: dev
|
|
30
|
+
Provides-Extra: docs
|
|
31
|
+
Provides-Extra: numpy
|
|
32
|
+
Provides-Extra: pandas
|
|
33
|
+
Provides-Extra: polars
|
|
34
|
+
Provides-Extra: terminal
|
|
35
|
+
License-File: LICENSE
|
|
36
|
+
Summary: A Python application toolkit for GPU-native data tools.
|
|
37
|
+
Keywords: gui,gpu,dataframe,wgpu,visualization,rust
|
|
38
|
+
Author: DragonFrame contributors
|
|
39
|
+
License-Expression: MIT
|
|
40
|
+
Requires-Python: >=3.12
|
|
41
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
42
|
+
Project-URL: Homepage, https://github.com/NKocur/DragonGui
|
|
43
|
+
Project-URL: Issues, https://github.com/NKocur/DragonGui/issues
|
|
44
|
+
Project-URL: Source, https://github.com/NKocur/DragonGui
|
|
45
|
+
|
|
46
|
+
# DragonGUI
|
|
47
|
+
|
|
48
|
+
A Python application toolkit for GPU-native data tools.
|
|
49
|
+
|
|
50
|
+
Python describes the application. Rust owns the hot path: windowing, input,
|
|
51
|
+
layout, text, rendering, GPU widgets, and retained widget state. The native
|
|
52
|
+
renderer does not call Python on every frame.
|
|
53
|
+
|
|
54
|
+
**Status:** stable. Version 1.0.0 is the first production release. Public APIs
|
|
55
|
+
follow semantic versioning from this release forward. `NodeGraph` remains an
|
|
56
|
+
experimental preview outside the stable API guarantee; see
|
|
57
|
+
[Experimental APIs](#experimental-apis).
|
|
58
|
+
|
|
59
|
+
## Installation
|
|
60
|
+
|
|
61
|
+
DragonGUI requires Python 3.12 or 3.13. Install the prebuilt wheel from PyPI:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
python -m pip install dragongui
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Normal wheel installation does not require Rust. A Rust toolchain is needed
|
|
68
|
+
only when pip must build from the source distribution or when developing
|
|
69
|
+
DragonGUI itself.
|
|
70
|
+
|
|
71
|
+
Optional integrations can be installed independently:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
python -m pip install "dragongui[numpy]" # NumPy plotting/colormap paths
|
|
75
|
+
python -m pip install "dragongui[pandas]" # pandas integration
|
|
76
|
+
python -m pip install "dragongui[polars]" # Polars integration
|
|
77
|
+
python -m pip install "dragongui[dataframe]" # pandas and Polars together
|
|
78
|
+
python -m pip install "dragongui[terminal]" # Windows ConPTY support
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Version 1.0.0 publishes wheels for Windows x86-64, Linux x86-64, macOS Intel,
|
|
82
|
+
and macOS Apple Silicon. Other architectures may build from source but are not
|
|
83
|
+
part of the supported 1.0.0 binary matrix.
|
|
84
|
+
|
|
85
|
+
## Quick Look
|
|
86
|
+
|
|
87
|
+
```python
|
|
88
|
+
import dragongui as dg
|
|
89
|
+
|
|
90
|
+
app = dg.App(theme=dg.Theme.dark())
|
|
91
|
+
app.stylesheet("""
|
|
92
|
+
Panel.controls { width: 340px; padding: 14px; gap: 10px; }
|
|
93
|
+
Button:hover { background: accent_mix_20; }
|
|
94
|
+
""")
|
|
95
|
+
|
|
96
|
+
points = {
|
|
97
|
+
"x": [-1.0, 0.0, 1.0],
|
|
98
|
+
"y": [0.2, 0.8, 0.3],
|
|
99
|
+
"z": [0.0, 0.6, 1.0],
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
with dg.Window("My Tool", width=1200, height=800) as win:
|
|
103
|
+
with dg.FlexLayout(direction="row", gap=12, style={"padding": 12}):
|
|
104
|
+
with dg.Panel("Controls", class_="controls"):
|
|
105
|
+
palette = dg.Dropdown(["viridis", "plasma", "turbo"], value="viridis")
|
|
106
|
+
dg.Button("Apply", on_click=lambda: scatter.set_colormap(palette.value))
|
|
107
|
+
|
|
108
|
+
scatter = dg.Scatter3D(points, x="x", y="y", z="z", grid=True)
|
|
109
|
+
|
|
110
|
+
app.run(win)
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## What It Does
|
|
114
|
+
|
|
115
|
+
- **Native rendering** with `wgpu` through a Rust backend built on `winit`,
|
|
116
|
+
`taffy`, and `glyphon`; rendering and retained widget state remain native.
|
|
117
|
+
- **80+ widgets** — layout containers, buttons, text/number/date-time inputs,
|
|
118
|
+
sliders, dropdowns, checkboxes, radios, toggles, trees, menus, modals, tabs,
|
|
119
|
+
pages, navigation, breadcrumbs, a command palette, color pickers, images,
|
|
120
|
+
badges, LEDs, collapsibles, tooltips, progress/loading indicators,
|
|
121
|
+
drag-and-drop, and a custom-drawing `PaintWidget`.
|
|
122
|
+
- **Charts and data widgets** — GPU `Scatter3D`, `ScatterPlot2D`, `LinePlot`,
|
|
123
|
+
`Histogram`, `BarChart`, `Heatmap`, `PieChart`, a virtualized `DataFrameTable`,
|
|
124
|
+
an `HtmlReport` webview, and telemetry-oriented `LimitsBar` indicators.
|
|
125
|
+
- An optional embedded **Terminal**, multi-agent session helpers, and a thread
|
|
126
|
+
monitor. `NodeGraph` exists as an experimental preview only.
|
|
127
|
+
- **CSS styling** with type, class, id, attribute, pseudo-state, pseudo-function
|
|
128
|
+
(`:not()`, `:is()`, `:has()`, `:nth-child()`), and widget-part (`::thumb`,
|
|
129
|
+
`::stepper`, `::badge`, etc.) selectors, custom variables, `@media`,
|
|
130
|
+
`@supports`, `@font-face`, container queries, gradients, shadows, outlines,
|
|
131
|
+
transitions, animations, and backdrop filters.
|
|
132
|
+
- **Reactive components** with keyed state slots, VNode diffing, and targeted
|
|
133
|
+
native patches.
|
|
134
|
+
- **Live updates** from Python callbacks and background threads via a
|
|
135
|
+
thread-safe command queue.
|
|
136
|
+
- **GPU scatter** — 3D point clouds with 500K+ points, orbit/pan/zoom, 12
|
|
137
|
+
colormaps, scalar bar, categorical legend, orientation axes, 3D labels, line
|
|
138
|
+
and box overlays, multi-actor layers, lasso/rectangle selection, hover
|
|
139
|
+
tooltips, LOD, and real-time frame streaming.
|
|
140
|
+
- **Toast notifications**, file dialogs, native image display, and debug
|
|
141
|
+
snapshots.
|
|
142
|
+
|
|
143
|
+
## Widget Catalog
|
|
144
|
+
|
|
145
|
+
| Category | Widgets |
|
|
146
|
+
| --- | --- |
|
|
147
|
+
| Layout & shell | `Window`, `Body`, `AppShell`, `HLayout`, `VLayout`, `FlexLayout`, `Panel`, `ScrollArea`, `GridLayout`, `FlowLayout`, `WorkbenchLayout`, `WorkbenchMain`, `Sidebar`, `StatusBar`, `Toolbar`, `ToolbarSeparator`, `Splitter`, `Pane`, `Separator`, `Spacer` |
|
|
148
|
+
| Navigation | `Tabs`, `Tab`, `Pages`, `Page`, `NavItem`, `MenuBar`, `Menu`, `MenuItem`, `ContextMenu`, `Breadcrumbs`, `CommandPalette`, `SearchBox` |
|
|
149
|
+
| Containers & overlays | `Collapsible`, `Modal`, `Tooltip`, `PropertyGrid`, `Property` |
|
|
150
|
+
| Buttons | `Button`, `SmallButton`, `IconButton`, `ImageButton`, `ArrowButton` |
|
|
151
|
+
| Text & code input | `TextInput`, `TextArea`, `NumberInput`, `DragNumber`, `CodeEditor`, `LogView` |
|
|
152
|
+
| Date & time | `DateInput`, `TimeInput`, `DateTimeInput` |
|
|
153
|
+
| Selection controls | `Slider`, `RangeSlider`, `Dropdown`, `Checkbox`, `RadioButton`, `RadioGroup`, `ToggleSwitch`, `Selectable`, `SelectableList`, `ColorPicker` |
|
|
154
|
+
| Display | `Label`, `Badge`, `Tag`, `LED`, `Image`, `ProgressBar`, `LimitsBar`, `LoadingSpinner` |
|
|
155
|
+
| Trees | `TreeView`, `TreeNode` |
|
|
156
|
+
| Charts & plots | `Scatter3D`, `ScatterPlot2D`, `LinePlot`, `Histogram`, `BarChart`, `Heatmap`, `PieChart` |
|
|
157
|
+
| Tables & reports | `DataFrameTable`, `HtmlReport` |
|
|
158
|
+
| Drag & drop | `DragSource`, `DropTarget`, `DropZone`, `DragVector` |
|
|
159
|
+
| Custom & advanced | `PaintWidget`, `ExtensionWidget`, `Terminal`; experimental `NodeGraph` |
|
|
160
|
+
| Overlays & utilities | `alert()`, `confirm()`, `toast()`, `FileDialog`, `Theme`, `ThreadMonitor` |
|
|
161
|
+
|
|
162
|
+
## 3D Scatter
|
|
163
|
+
|
|
164
|
+
`Scatter3D` renders large point clouds via wgpu with a wide API for interactive
|
|
165
|
+
data exploration.
|
|
166
|
+
|
|
167
|
+
**Creating a plot:**
|
|
168
|
+
|
|
169
|
+
```python
|
|
170
|
+
points = {"px": [0.0, 1.0], "py": [0.2, 0.8], "pz": [0.4, 0.6]}
|
|
171
|
+
scatter = dg.Scatter3D(
|
|
172
|
+
points, x="px", y="py", z="pz",
|
|
173
|
+
colormap="viridis",
|
|
174
|
+
point_size=3.0,
|
|
175
|
+
grid=True,
|
|
176
|
+
on_pick=lambda hit: print(hit.index),
|
|
177
|
+
)
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
**Updating live:**
|
|
181
|
+
|
|
182
|
+
```python
|
|
183
|
+
new_points = {"px": [0.1, 1.1], "py": [0.3, 0.9], "pz": [0.5, 0.7]}
|
|
184
|
+
scatter.set_points(new_points, x="px", y="py", z="pz")
|
|
185
|
+
scatter.set_colormap("plasma")
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
**Chrome elements:**
|
|
189
|
+
|
|
190
|
+
```python
|
|
191
|
+
scatter.show_grid(True)
|
|
192
|
+
scatter.show_grid_planes(major=True, minor=True)
|
|
193
|
+
scatter.set_axes("X (m)", "Y (m)", "Z (m)")
|
|
194
|
+
scatter.show_legend(entries=[("Cluster A", 0.2, 0.6, 1.0)])
|
|
195
|
+
scatter.show_scalar_bar(vmin=0.0, vmax=1.0, colormap="inferno", title="Intensity")
|
|
196
|
+
scatter.show_orientation_axes(True)
|
|
197
|
+
scatter.set_background(0.05, 0.05, 0.08)
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
**3D annotations:**
|
|
201
|
+
|
|
202
|
+
```python
|
|
203
|
+
label_handle = scatter.add_label((0.0, 0.0, 0.0), "Origin", color=(1.0, 1.0, 0.0))
|
|
204
|
+
line_handle = scatter.add_lines(
|
|
205
|
+
[[0.0, 0.0, 0.0, 1.0, 1.0, 1.0]],
|
|
206
|
+
color=(1.0, 0.5, 0.0),
|
|
207
|
+
)
|
|
208
|
+
box_handle = scatter.add_box(
|
|
209
|
+
(-1.0, -1.0, -1.0, 1.0, 1.0, 1.0), # xmin, ymin, zmin, xmax, ymax, zmax
|
|
210
|
+
color=(0.3, 0.8, 1.0),
|
|
211
|
+
)
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
**Multiple independent point layers (actors):**
|
|
215
|
+
|
|
216
|
+
```python
|
|
217
|
+
layer = scatter.add_points(points_b, x="x", y="y", z="z", colormap="plasma")
|
|
218
|
+
scatter.update_actor(layer, points_new, x="x", y="y", z="z")
|
|
219
|
+
scatter.remove_actor(layer)
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
**Real-time frame streaming:**
|
|
223
|
+
|
|
224
|
+
```python
|
|
225
|
+
payloads = [
|
|
226
|
+
scatter.prepare_points(frame, x="x", y="y", z="z")
|
|
227
|
+
for frame in frames
|
|
228
|
+
]
|
|
229
|
+
stream = scatter.stream_prepared_frames(payloads, interval_ms=40, loop=True)
|
|
230
|
+
stream.start()
|
|
231
|
+
# ... later:
|
|
232
|
+
stream.stop()
|
|
233
|
+
print(stream.metrics) # production, submission, callback, and error counters
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
**Selection and hover:**
|
|
237
|
+
|
|
238
|
+
```python
|
|
239
|
+
scatter = dg.Scatter3D(
|
|
240
|
+
points,
|
|
241
|
+
x="x",
|
|
242
|
+
y="y",
|
|
243
|
+
z="z",
|
|
244
|
+
on_pick=lambda hit: print(hit.index, hit.point),
|
|
245
|
+
)
|
|
246
|
+
# After interaction:
|
|
247
|
+
hits = scatter.selected # list[ScatterHit]
|
|
248
|
+
indices = scatter.selected_indices # list[int]
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
**Available colormaps:** `viridis`, `plasma`, `inferno`, `magma`, `coolwarm`,
|
|
252
|
+
`hot`, `gray`, `turbo`, `cividis`, `blues`, `greens`, `reds`
|
|
253
|
+
|
|
254
|
+
**Camera linking:**
|
|
255
|
+
```python
|
|
256
|
+
dg.link_cameras(scatter_a, scatter_b) # programmatic camera changes propagate
|
|
257
|
+
dg.unlink_cameras(scatter_a, scatter_b)
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
## Components
|
|
261
|
+
|
|
262
|
+
Reactive components with keyed state and VNode diffing:
|
|
263
|
+
|
|
264
|
+
```python
|
|
265
|
+
@dg.component
|
|
266
|
+
def Counter(ctx: dg.ComponentCtx, initial: int = 0):
|
|
267
|
+
count = ctx.state("count", initial)
|
|
268
|
+
|
|
269
|
+
win = dg.Window("Counter")
|
|
270
|
+
with dg.Panel():
|
|
271
|
+
dg.Label(f"Count: {count.value}")
|
|
272
|
+
dg.Button("Increment", on_click=lambda: count.set(count.value + 1))
|
|
273
|
+
return win
|
|
274
|
+
|
|
275
|
+
app.run(Counter(initial=5))
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
- `@dg.component` — wraps a render function as a reusable component.
|
|
279
|
+
- `ctx.state(key, default)` → `StateSlot` — stable slot per key; `.value` reads,
|
|
280
|
+
`.set(v)` writes and triggers a diff+patch cycle.
|
|
281
|
+
- `ctx.app` — access `AppHandle` (toast, `call_soon_threadsafe`, etc.) while live.
|
|
282
|
+
|
|
283
|
+
## Experimental APIs
|
|
284
|
+
|
|
285
|
+
`NodeGraph` and its runtime/binding helpers are incomplete previews. They are
|
|
286
|
+
exposed for development and internal probes, but are **not ready for usage in
|
|
287
|
+
applications or production code**. Their behavior, serialization, and public
|
|
288
|
+
API may change or be removed without compatibility guarantees. The built-in
|
|
289
|
+
manual repeats this warning on every NodeGraph-related entry.
|
|
290
|
+
|
|
291
|
+
## CSS Styling
|
|
292
|
+
|
|
293
|
+
```python
|
|
294
|
+
app.stylesheet("""
|
|
295
|
+
/* Type, class, ID, attribute selectors */
|
|
296
|
+
Panel { background: #1a1a2e; border-radius: 8px; }
|
|
297
|
+
Button.primary { background: accent; color: white; }
|
|
298
|
+
#save { width: 120px; }
|
|
299
|
+
[disabled] { opacity: 0.4; }
|
|
300
|
+
|
|
301
|
+
/* Pseudo-states */
|
|
302
|
+
Button:hover { background: accent_mix_20; }
|
|
303
|
+
Checkbox:checked { color: accent; }
|
|
304
|
+
Collapsible:expanded > Panel { padding: 12px; }
|
|
305
|
+
Dropdown:open { border-color: accent; }
|
|
306
|
+
|
|
307
|
+
/* Pseudo-functions */
|
|
308
|
+
Button:not(.ghost) { border: 1px solid border; }
|
|
309
|
+
Panel:has(Slider) { padding-left: 16px; }
|
|
310
|
+
:nth-child(2n) { background: surface_alt; }
|
|
311
|
+
|
|
312
|
+
/* Widget parts (sub-element selectors) */
|
|
313
|
+
Slider::thumb { background: accent; width: 14px; }
|
|
314
|
+
NumberInput::stepper { background: surface_alt; }
|
|
315
|
+
Checkbox::box { border-radius: 4px; }
|
|
316
|
+
Tabs::tab:hover { color: accent; }
|
|
317
|
+
ProgressBar::fill {
|
|
318
|
+
background: linear-gradient(90deg, #38bdf8 0%, #8b5cf6 100%);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/* Effects: gradients, shadows, outlines */
|
|
322
|
+
Panel.card { background: linear-gradient(135deg, #1a1a2e, #0d0d1a); }
|
|
323
|
+
Button:focus { outline: 2px solid focus; outline-offset: 2px; }
|
|
324
|
+
Modal { box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5); }
|
|
325
|
+
|
|
326
|
+
/* Transitions and animations */
|
|
327
|
+
Button { transition: background 120ms ease, border-color 120ms; }
|
|
328
|
+
Panel.busy { animation: pulse 1.2s ease-in-out infinite; }
|
|
329
|
+
|
|
330
|
+
/* At-rules: media, feature, and font queries + container queries */
|
|
331
|
+
@media (max-width: 800px) { Panel.controls { display: none; } }
|
|
332
|
+
@supports (backdrop-filter: blur(8px)) { Modal { backdrop-filter: blur(8px); } }
|
|
333
|
+
@font-face { font-family: "Mono"; src: url("./mono.ttf"); }
|
|
334
|
+
@container (min-width: 600px) { Panel.grid { grid-template-columns: 1fr 1fr; } }
|
|
335
|
+
""")
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
Supported pseudo-states: `:hover`, `:active`, `:focus`, `:checked`, `:disabled`,
|
|
339
|
+
`:selected`, `:expanded`, `:collapsed`, `:open`
|
|
340
|
+
|
|
341
|
+
CSS parts vary by widget — see [docs/css-styling.md](./docs/css-styling.md) for
|
|
342
|
+
the full per-widget part list.
|
|
343
|
+
|
|
344
|
+
## Theming
|
|
345
|
+
|
|
346
|
+
```python
|
|
347
|
+
# Built-in presets
|
|
348
|
+
app = dg.App(theme=dg.Theme.dark())
|
|
349
|
+
app = dg.App(theme=dg.Theme.light())
|
|
350
|
+
|
|
351
|
+
# Override specific tokens
|
|
352
|
+
theme = dg.Theme.dark(
|
|
353
|
+
accent="#3fc7ff",
|
|
354
|
+
radius=8.0,
|
|
355
|
+
font_size=14.0,
|
|
356
|
+
)
|
|
357
|
+
|
|
358
|
+
# Reference tokens in stylesheets
|
|
359
|
+
app.stylesheet("Button { background: accent_mix_20; border-color: border; }")
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
Theme tokens available as CSS values: `background`, `surface`, `surface_alt`,
|
|
363
|
+
`text`, `muted_text`, `accent`, `border`, `danger`, `warning`, `success`,
|
|
364
|
+
`focus`, `disabled` — plus computed mix variants (e.g. `accent_mix_20`).
|
|
365
|
+
|
|
366
|
+
## Layout Essentials
|
|
367
|
+
|
|
368
|
+
DragonGUI uses native flex/grid layout. For application shells, prefer
|
|
369
|
+
`AppShell` with `Body`, or `WorkbenchLayout` with `WorkbenchMain`, so fixed
|
|
370
|
+
chrome and flexible content receive explicit roles. Use `gap` for spacing
|
|
371
|
+
between siblings and `padding` for space inside a container.
|
|
372
|
+
|
|
373
|
+
Give each scrollable region one clear `ScrollArea` owner. Flexible descendants
|
|
374
|
+
that must shrink should use `min_width: 0` and/or `min_height: 0`; otherwise
|
|
375
|
+
their intrinsic content size can force overflow. The
|
|
376
|
+
[layout guide](./docs/layout.md) covers sizing, clipping, responsive grids, and
|
|
377
|
+
diagnostic patterns.
|
|
378
|
+
|
|
379
|
+
## Live Updates
|
|
380
|
+
|
|
381
|
+
```python
|
|
382
|
+
# From callbacks (main thread)
|
|
383
|
+
label = dg.Label("0.50")
|
|
384
|
+
slider = dg.Slider(0.5, on_change=lambda value: label.set_value(f"{value:.2f}"))
|
|
385
|
+
|
|
386
|
+
# From background threads
|
|
387
|
+
import threading
|
|
388
|
+
import time
|
|
389
|
+
|
|
390
|
+
def worker():
|
|
391
|
+
for step in range(101):
|
|
392
|
+
app.call_soon_threadsafe(
|
|
393
|
+
lambda value=step / 100: progress.set_value(value),
|
|
394
|
+
coalesce_key="readme.progress.latest",
|
|
395
|
+
)
|
|
396
|
+
time.sleep(0.05)
|
|
397
|
+
|
|
398
|
+
threading.Thread(target=worker, daemon=True).start()
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
Reuse a stable `coalesce_key` for replaceable snapshots so slow rendering skips
|
|
402
|
+
obsolete pending state. Omit the key for lossless events and append-only plot or
|
|
403
|
+
log streams, where every callback must remain FIFO.
|
|
404
|
+
|
|
405
|
+
Group related changes into one visual update when they must appear together:
|
|
406
|
+
|
|
407
|
+
```python
|
|
408
|
+
with app.update_batch():
|
|
409
|
+
progress.set_value(0.72)
|
|
410
|
+
limits.set_value(72.0)
|
|
411
|
+
status.set_value("Nominal")
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
`LimitsBar` is designed for telemetry displays. The thresholds must remain in
|
|
415
|
+
ascending order; omitted thresholds default to 10%, 25%, 75%, and 90% of the
|
|
416
|
+
configured domain.
|
|
417
|
+
|
|
418
|
+
```python
|
|
419
|
+
limits = dg.LimitsBar(
|
|
420
|
+
62.0,
|
|
421
|
+
min=0.0,
|
|
422
|
+
max=100.0,
|
|
423
|
+
red_low=10.0,
|
|
424
|
+
yellow_low=25.0,
|
|
425
|
+
yellow_high=75.0,
|
|
426
|
+
red_high=90.0,
|
|
427
|
+
)
|
|
428
|
+
limits.set_value(68.0)
|
|
429
|
+
```
|
|
430
|
+
|
|
431
|
+
**Toasts:**
|
|
432
|
+
```python
|
|
433
|
+
handle = app.toast("Loading...", level="info")
|
|
434
|
+
# ... later:
|
|
435
|
+
handle.update("Done!", level="success")
|
|
436
|
+
handle.dismiss()
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
Toast positions: `top-right`, `top-left`, `bottom-right`, `bottom-left`
|
|
440
|
+
|
|
441
|
+
## Built-in Help
|
|
442
|
+
|
|
443
|
+
The installed package includes a searchable manual generated and audited
|
|
444
|
+
against the public API:
|
|
445
|
+
|
|
446
|
+
```python
|
|
447
|
+
import dragongui as dg
|
|
448
|
+
|
|
449
|
+
print(dg.help())
|
|
450
|
+
print(dg.help.reference.widgets.limits_bar())
|
|
451
|
+
print(dg.help.search("scatter streaming"))
|
|
452
|
+
print(dg.help.find_symbol("NumberInput"))
|
|
453
|
+
```
|
|
454
|
+
|
|
455
|
+
Sections are callable (`dg.help("widgets.plots")`) and can also be exported as
|
|
456
|
+
structured data with `dg.help.to_dict()`. Treat the NodeGraph warnings in this
|
|
457
|
+
manual as authoritative.
|
|
458
|
+
|
|
459
|
+
## Repository Layout
|
|
460
|
+
|
|
461
|
+
```
|
|
462
|
+
python/dragongui/ Python package and built-in help manual
|
|
463
|
+
native/src/ Rust native extension (PyO3 + maturin)
|
|
464
|
+
tests/ Python and integration tests
|
|
465
|
+
examples/ Current demos and experimental NodeGraph probes
|
|
466
|
+
examples/css_feature_probes/ Focused, one-feature-per-file probes
|
|
467
|
+
examples/older/ Legacy single-feature demos and tools
|
|
468
|
+
plans/ Implementation plans and roadmap
|
|
469
|
+
docs/ Markdown and Sphinx documentation
|
|
470
|
+
```
|
|
471
|
+
|
|
472
|
+
The Rust native extension carries its own unit-test suite in addition to the
|
|
473
|
+
Python tests above.
|
|
474
|
+
|
|
475
|
+
## Development
|
|
476
|
+
|
|
477
|
+
Create and activate a virtual environment, then install the project in editable
|
|
478
|
+
mode. Building the native extension requires a Rust toolchain.
|
|
479
|
+
|
|
480
|
+
```powershell
|
|
481
|
+
py -3.12 -m venv .venv
|
|
482
|
+
.\.venv\Scripts\Activate.ps1
|
|
483
|
+
python -m pip install -e ".[dev]"
|
|
484
|
+
```
|
|
485
|
+
|
|
486
|
+
On macOS or Linux, activate with `source .venv/bin/activate` instead. Run a
|
|
487
|
+
current example after installation:
|
|
488
|
+
|
|
489
|
+
```bash
|
|
490
|
+
python examples/responsive_app_template.py
|
|
491
|
+
```
|
|
492
|
+
|
|
493
|
+
For an explicit native rebuild during development, run this **inside the active
|
|
494
|
+
virtual environment**:
|
|
495
|
+
|
|
496
|
+
```bash
|
|
497
|
+
python -m maturin develop --manifest-path native/Cargo.toml
|
|
498
|
+
```
|
|
499
|
+
|
|
500
|
+
Run tests:
|
|
501
|
+
|
|
502
|
+
```bash
|
|
503
|
+
python -m pytest
|
|
504
|
+
python -m pytest tests/test_python_api.py -k builtin_help
|
|
505
|
+
```
|
|
506
|
+
|
|
507
|
+
Build a release wheel for the current host:
|
|
508
|
+
|
|
509
|
+
```bash
|
|
510
|
+
python -m maturin build --release --manifest-path native/Cargo.toml --out dist
|
|
511
|
+
```
|
|
512
|
+
|
|
513
|
+
Confirm which backend the interpreter loaded with
|
|
514
|
+
`python -c "import dragongui as dg; print(dg.backend_info())"`.
|
|
515
|
+
|
|
516
|
+
## Examples
|
|
517
|
+
|
|
518
|
+
Run any current example after the editable install described in
|
|
519
|
+
[Development](#development).
|
|
520
|
+
|
|
521
|
+
**Flagship demos** (`examples/`):
|
|
522
|
+
|
|
523
|
+
| Example | What It Shows |
|
|
524
|
+
| --- | --- |
|
|
525
|
+
| `responsive_app_template.py` | Small modern starter using `AppShell`, responsive `Sidebar`, routed pages, adaptive grids, and explicit scrolling |
|
|
526
|
+
| `aurora_command_center_demo.py` | Sleek responsive command center used to stress layout, styling, diagnostics, and visual-audit states |
|
|
527
|
+
| `nexus_studio_stress_demo.py` | Five-workspace flagship stress demo with dense dashboards, plots, tables, workflows, controls, diagnostics, overlays, and responsive audit states |
|
|
528
|
+
| `cathode_ops_stress_demo.py` | Six-workspace vintage-CRT stress demo: scanline/phosphor CSS with three palettes, custom `PaintWidget` scope and core map, a load-bank page, and live worker-thread updates |
|
|
529
|
+
| `theme_forge_stress_demo.py` | Large multi-theme CSS, layout, paint, chrome, and live-update stress application |
|
|
530
|
+
| `client_window_chrome_demo.py` | Client-decorated window behavior and chrome styling |
|
|
531
|
+
| `icon_theme_demo.py` | Icon theme registration and widget icon rendering |
|
|
532
|
+
| `live_update_batch_demo.py` | Batched and coalesced live telemetry updates |
|
|
533
|
+
| `live_update_producer_safety_probe.py` | Producer-thread safety and queue-pressure behavior |
|
|
534
|
+
|
|
535
|
+
**Feature probes** (`examples/css_feature_probes/`) — 80+ focused,
|
|
536
|
+
one-feature-per-file programs used for visual verification. A sampling:
|
|
537
|
+
|
|
538
|
+
| Area | Probes |
|
|
539
|
+
| --- | --- |
|
|
540
|
+
| Widgets | `core_widgets_probe`, `form_controls_probe`, `limits_bar_probe`, `tree_view_probe`, `toggle_switch_probe`, `radio_group_probe`, `date_time_inputs_probe`, `command_palette_probe`, `breadcrumbs_probe`, `toolbar_probe` |
|
|
541
|
+
| Charts & data | `bar_chart_probe`, `histogram_probe`, `heatmap_probe`, `pie_chart_probe`, `line_plot_probe`, `scatter3d_probe`, `scatter_plot_2d_probe`, `data_table_upgrades_probe`, `html_report_probe` |
|
|
542
|
+
| CSS features | `gradients_probe`, `border_outline_shadow_probe`, `transitions_transforms_probe`, `animations_probe`, `backdrop_filter_probe`, `container_queries_probe`, `supports_probe`, `font_face_probe`, `selectors_probe`, `typography_probe` |
|
|
543
|
+
| Layout | `layout_containers_probe`, `layout_grid_masonry_probe`, `responsive_layout_probe`, `overflow_scrollbar_probe`, `positioning_zindex_probe`, `splitter_probe` |
|
|
544
|
+
| Custom drawing | `paint_widget_events_probe`, `paint_widget_sparkline_probe`, `custom_composite_widget_probe` |
|
|
545
|
+
|
|
546
|
+
**Legacy demos and tools** (`examples/older/`) — earlier demos and tools,
|
|
547
|
+
including `all_features_v3_demo.py`, `all_features_professional_demo.py`,
|
|
548
|
+
scatter/table tools, live-update tools, CSS theme galleries, component demos, a
|
|
549
|
+
terminal wrapper, the `meridian` application demo, and more.
|
|
550
|
+
|
|
551
|
+
**Experimental NodeGraph probes** (`examples/node_graph_*.py`) exercise
|
|
552
|
+
unfinished APIs for library development only. They are not application
|
|
553
|
+
templates; see [Experimental APIs](#experimental-apis).
|
|
554
|
+
|
|
555
|
+
## Architecture
|
|
556
|
+
|
|
557
|
+
```
|
|
558
|
+
Python widgets / components
|
|
559
|
+
-> typed document / VNode diff / command patches
|
|
560
|
+
-> PyO3 native bridge
|
|
561
|
+
-> Rust command queue and retained widget tree
|
|
562
|
+
-> CSS cascade, Taffy layout, widget state
|
|
563
|
+
-> wgpu primitive, text, image, scatter, and table renderers
|
|
564
|
+
-> native window (winit)
|
|
565
|
+
```
|
|
566
|
+
|
|
567
|
+
## Native Stack
|
|
568
|
+
|
|
569
|
+
| Crate | Purpose |
|
|
570
|
+
| --- | --- |
|
|
571
|
+
| `pyo3` | Python bindings (abi3, stable ABI) |
|
|
572
|
+
| `winit` | Native window and event loop |
|
|
573
|
+
| `wgpu` | GPU rendering |
|
|
574
|
+
| `taffy` | Flexbox/grid layout |
|
|
575
|
+
| `glyphon` | Text shaping and rendering |
|
|
576
|
+
| `lightningcss` | CSS parsing |
|
|
577
|
+
| `rfd` | Native file dialogs |
|
|
578
|
+
| `image` | PNG/JPEG decoding |
|
|
579
|
+
|
|
580
|
+
## Requirements
|
|
581
|
+
|
|
582
|
+
- Python >= 3.12
|
|
583
|
+
- A Rust toolchain when building from source (not when installing a wheel)
|
|
584
|
+
- Windows, macOS, or Linux with a GPU backend supported by `wgpu`
|
|
585
|
+
|
|
586
|
+
CI runs Python 3.12 and 3.13 tests, Rust checks on Windows, macOS, and Linux,
|
|
587
|
+
supply-chain checks, and release metadata validation. The release workflow
|
|
588
|
+
builds and smoke-tests Windows x86-64, Linux x86-64, macOS Intel, and macOS
|
|
589
|
+
Apple Silicon wheels before publishing.
|
|
590
|
+
|
|
591
|
+
Optional extras: `pip install "dragongui[dataframe]"` for `pandas`/`polars`
|
|
592
|
+
DataFrame integration, `[terminal]` for the embedded terminal (`pywinpty` on
|
|
593
|
+
Windows), `[numpy]` for NumPy plotting paths, `[pandas]` or `[polars]` for one
|
|
594
|
+
dataframe engine, `[dev]` for build/test tooling, and `[docs]` for the Sphinx
|
|
595
|
+
docs.
|
|
596
|
+
|
|
597
|
+
## License
|
|
598
|
+
|
|
599
|
+
MIT. Third-party dependency notice policy and release-generation instructions
|
|
600
|
+
are included in [THIRD_PARTY_NOTICES.md](./THIRD_PARTY_NOTICES.md).
|
|
601
|
+
|
|
602
|
+
## Documentation
|
|
603
|
+
|
|
604
|
+
- [docs/widgets-reference.md](./docs/widgets-reference.md) — all widget options
|
|
605
|
+
- [docs/css-styling.md](./docs/css-styling.md) — selectors, parts, and variables
|
|
606
|
+
- [docs/css-capabilities-reference.md](./docs/css-capabilities-reference.md) — full CSS feature list
|
|
607
|
+
- [docs/layout.md](./docs/layout.md) — layout system and taffy integration
|
|
608
|
+
- [docs/library-overview.md](./docs/library-overview.md) — architecture deep-dive
|
|
609
|
+
- [docs/sphinx/index.md](./docs/sphinx/index.md) — structured user guide source
|
|
610
|
+
- [plans/](./plans/) — implementation roadmap
|
|
611
|
+
|