step 2: add gauge state sizing and animation model

This commit is contained in:
2026-07-02 13:54:58 +02:00
parent 44e4cbd246
commit 34fd60c34e
27 changed files with 1732 additions and 5 deletions

View File

@@ -0,0 +1,74 @@
"""Dear PyGui gauge widgets."""
from .api import (
analog_gauge,
bar_gauge,
battery_gauge,
compass_gauge,
configure,
configure_gauge,
delete_gauge,
digital_gauge,
gauge_grid,
gauge_panel,
get_value,
level_gauge,
multi_value_gauge,
segmented_gauge,
set_markers,
set_show,
set_thresholds,
set_value,
status_light,
thermometer_gauge,
update_gauge,
)
from .diagnostics import get_gauge_debug_state
from .themes import GaugeStyle, GaugeTheme
from .types import (
AnimationConfig,
GaugeMarker,
GaugeStats,
GaugeValue,
SmoothingConfig,
StatusState,
ThresholdBand,
)
__all__ = [
"configure",
"GaugeTheme",
"GaugeStyle",
"AnimationConfig",
"SmoothingConfig",
"ThresholdBand",
"GaugeMarker",
"StatusState",
"GaugeValue",
"GaugeStats",
"analog_gauge",
"digital_gauge",
"bar_gauge",
"level_gauge",
"status_light",
"segmented_gauge",
"compass_gauge",
"thermometer_gauge",
"battery_gauge",
"multi_value_gauge",
"gauge_panel",
"gauge_grid",
"set_value",
"get_value",
"update_gauge",
"configure_gauge",
"set_thresholds",
"set_markers",
"set_show",
"delete_gauge",
"get_gauge_debug_state",
]
def main() -> None:
print("dpg-gauges is a library package; import dpg_gauges to use it.")