Release 1.0.2
This commit is contained in:
@@ -35,7 +35,7 @@ from .types import (
|
||||
ThresholdBand,
|
||||
)
|
||||
|
||||
__version__ = "1.0.1"
|
||||
__version__ = "1.0.2"
|
||||
|
||||
__all__ = [
|
||||
"configure",
|
||||
|
||||
@@ -36,6 +36,7 @@ def _normalize_smoothing(value: SmoothingConfig | bool | None) -> SmoothingConfi
|
||||
@dataclass(frozen=True)
|
||||
class GaugeConfig:
|
||||
tag: Tag | None = None
|
||||
parent: Tag | None = None
|
||||
label: str | None = None
|
||||
value: GaugeValue = None
|
||||
min_value: float = 0.0
|
||||
|
||||
@@ -122,6 +122,7 @@ def create_gauge_context(gauge_type: str, config: ConfigT) -> GaugeContext[Confi
|
||||
|
||||
container = dpg.add_group(
|
||||
tag=container_tag or 0,
|
||||
parent=config.parent or 0,
|
||||
width=width,
|
||||
height=height,
|
||||
show=config.show,
|
||||
@@ -153,6 +154,7 @@ def create_gauge_context(gauge_type: str, config: ConfigT) -> GaugeContext[Confi
|
||||
def gauge_panel(
|
||||
*,
|
||||
tag: Tag | None = None,
|
||||
parent: Tag | None = None,
|
||||
label: str | None = None,
|
||||
width: int = 0,
|
||||
height: int = 0,
|
||||
@@ -168,6 +170,7 @@ def gauge_panel(
|
||||
return LayoutContext(None)
|
||||
container = dpg.add_child_window(
|
||||
tag=tag or 0,
|
||||
parent=parent or 0,
|
||||
label=label or "",
|
||||
width=width,
|
||||
height=height,
|
||||
@@ -185,6 +188,7 @@ def gauge_grid(
|
||||
*,
|
||||
columns: int = 1,
|
||||
tag: Tag | None = None,
|
||||
parent: Tag | None = None,
|
||||
width: int = 0,
|
||||
height: int = 0,
|
||||
show: bool = True,
|
||||
@@ -196,6 +200,7 @@ def gauge_grid(
|
||||
columns = max(int(columns), 1)
|
||||
container = dpg.add_group(
|
||||
tag=tag or 0,
|
||||
parent=parent or 0,
|
||||
width=width,
|
||||
height=height,
|
||||
show=show,
|
||||
@@ -208,6 +213,7 @@ def gauge_grid(
|
||||
def analog_gauge(
|
||||
*,
|
||||
tag: Tag | None = None,
|
||||
parent: Tag | None = None,
|
||||
label: str | None = None,
|
||||
value: GaugeValue = None,
|
||||
min_value: float = 0.0,
|
||||
@@ -253,6 +259,7 @@ def analog_gauge(
|
||||
def digital_gauge(
|
||||
*,
|
||||
tag: Tag | None = None,
|
||||
parent: Tag | None = None,
|
||||
label: str | None = None,
|
||||
value: GaugeValue = None,
|
||||
min_value: float = 0.0,
|
||||
@@ -287,6 +294,7 @@ def digital_gauge(
|
||||
def bar_gauge(
|
||||
*,
|
||||
tag: Tag | None = None,
|
||||
parent: Tag | None = None,
|
||||
label: str | None = None,
|
||||
value: GaugeValue = None,
|
||||
min_value: float = 0.0,
|
||||
@@ -326,6 +334,7 @@ def bar_gauge(
|
||||
def level_gauge(
|
||||
*,
|
||||
tag: Tag | None = None,
|
||||
parent: Tag | None = None,
|
||||
label: str | None = None,
|
||||
value: GaugeValue = None,
|
||||
min_value: float = 0.0,
|
||||
@@ -365,6 +374,7 @@ def level_gauge(
|
||||
def status_light(
|
||||
*,
|
||||
tag: Tag | None = None,
|
||||
parent: Tag | None = None,
|
||||
label: str | None = None,
|
||||
value: GaugeValue = None,
|
||||
min_value: float = 0.0,
|
||||
@@ -403,6 +413,7 @@ def status_light(
|
||||
def segmented_gauge(
|
||||
*,
|
||||
tag: Tag | None = None,
|
||||
parent: Tag | None = None,
|
||||
label: str | None = None,
|
||||
value: GaugeValue = None,
|
||||
min_value: float = 0.0,
|
||||
@@ -443,6 +454,7 @@ def segmented_gauge(
|
||||
def compass_gauge(
|
||||
*,
|
||||
tag: Tag | None = None,
|
||||
parent: Tag | None = None,
|
||||
label: str | None = None,
|
||||
value: GaugeValue = None,
|
||||
min_value: float = 0.0,
|
||||
@@ -488,6 +500,7 @@ def compass_gauge(
|
||||
def thermometer_gauge(
|
||||
*,
|
||||
tag: Tag | None = None,
|
||||
parent: Tag | None = None,
|
||||
label: str | None = None,
|
||||
value: GaugeValue = None,
|
||||
min_value: float = 0.0,
|
||||
@@ -529,6 +542,7 @@ def thermometer_gauge(
|
||||
def battery_gauge(
|
||||
*,
|
||||
tag: Tag | None = None,
|
||||
parent: Tag | None = None,
|
||||
label: str | None = None,
|
||||
value: GaugeValue = None,
|
||||
min_value: float = 0.0,
|
||||
@@ -569,6 +583,7 @@ def battery_gauge(
|
||||
def multi_value_gauge(
|
||||
*,
|
||||
tag: Tag | None = None,
|
||||
parent: Tag | None = None,
|
||||
label: str | None = None,
|
||||
value: GaugeValue = None,
|
||||
min_value: float = 0.0,
|
||||
|
||||
Reference in New Issue
Block a user