sas
Modularised monitoring, logging, and control of robots.
Loading...
Searching...
No Matches
core.gui.state Namespace Reference

Functions

None set_state (widget, str state)

Detailed Description

Helper for the dynamic `state` property used by the Qt style sheets in this package.

Function Documentation

◆ set_state()

None set_state ( widget,
str state )
Set the `state` property and force Qt to re-evaluate the style sheet for the widget.

`setProperty` alone does not restyle the widget; Qt's `unpolish`/`polish` pair (unrelated to
the polisher station) is the standard way to refresh it. Does nothing if the state is unchanged.