- class glue.utils.qt.widget_properties.WidgetProperty(att, docstring='')[source]¶
Base class for widget properties
Subclasses implement, at a minimum, the “get” and “set” methods, which translate between widget states and python variables
The location, within a class instance, of the widget to wrap around. If the widget is nested inside another variable, normal ‘.’ syntax can be used (e.g. ‘sub_window.button’)
- docstringstr, optional
Optional short summary for the property. Used by sphinx. Should be 1 sentence or less.
Return the state of a widget.
Set the state of a widget to a certain value
Return the state of a widget. Depends on type of widget, and must be overridden