Skip to content

propertywidget

sgp.ui.widgets.propertywidget.T module-attribute

T = TypeVar('T')

sgp.ui.widgets.propertywidget.PropertyWidget

Bases: QWidget, QObject

Widget for displaying property items.

sgp.ui.widgets.propertywidget.PropertyWidget.__init__

__init__(name: str, value: float, enabled: bool = None, parent=None, *args, SpinBox: Type[QDoubleSpinBox] = QtWidgets.QDoubleSpinBox, **kwargs)

Initialize the PropertyWidget.

sgp.ui.widgets.propertywidget.PropertyWidget.isEnabled

isEnabled() -> bool

Get whether the PropertyWidget is enabled.

sgp.ui.widgets.propertywidget.PropertyWidget.setOptions

setOptions(**options)

Set the options of the PropertyWidget.

sgp.ui.widgets.propertywidget.PropertyWidget.setValue

setValue(value: float)

Set the value of the PropertyWidget.

sgp.ui.widgets.propertywidget.PropertyWidget.value

value() -> float

Get the value of the PropertyWidget.

sgp.ui.widgets.propertywidget.create_widget

create_widget(cls: Type[T], init_args: tuple = None, init_kwargs: dict = None, **kwargs) -> T