spacr.qt.widgets.section
========================

.. py:module:: spacr.qt.widgets.section

.. autoapi-nested-parse::

   Section — a collapsible group with a header row (chevron + title) and
   a QFormLayout body that expands/collapses on click. Used by settings
   screens to group related fields; every section is collapsed by
   default so users see one row per category instead of a wall of
   controls.





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

.. py:class:: Section(title: str, parent=None, expanded: bool = False)

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


   Collapsible section with an animated chevron header + form body.


   .. py:attribute:: toggled


   .. py:method:: add_row(label: str, widget: PySide6.QtWidgets.QWidget) -> None

      Add a labeled row to the section's form body.



   .. py:method:: add_widget(widget: PySide6.QtWidgets.QWidget) -> None

      Add a full-width (label-less) widget to the section's form body.



   .. py:method:: title() -> str

      Return the section's header text.



   .. py:method:: set_expanded(on: bool) -> None

      Expand or collapse the section body programmatically.



   .. py:method:: is_expanded() -> bool

      Return True when the section body is currently visible.



