spacr.qt.widgets.usage_bar
==========================

.. py:module:: spacr.qt.widgets.usage_bar

.. autoapi-nested-parse::

   UsageBar — labeled slim progress bar for RAM/GPU/CPU indicators.





Module Contents
---------------

.. py:class:: UsageBar(label: str, parent=None)

   Bases: :py:obj:`PySide6.QtWidgets.QWidget`


   Labeled thin progress bar with a right-aligned percent readout.

   :param label: text shown to the left of the bar (e.g. "RAM", "GPU").


   .. py:method:: set_value(pct: float) -> None

      Set the bar value, clamped to 0-100, and re-color at 75/90 %.

      :param pct: value in ``0.0``-``100.0``; out-of-range values clamp.



