RadioBox#
- class ansys.scade.guitools.control.RadioBox(owner, buttons: List[Tuple[str, str]], x: int, y: int, w: int, text: str = '', h: int = c.GROUP_RADIO_BOX_HEIGHT)#
Bases:
scade.tool.suite.gui.widgets.GroupBoxDefines a bundle made of a group and a set of radio button controls.
The group is hidden when text is empty.
Parameters#
- ownerAny
Owner of the control.
- buttonslist[tuple[str, str]]
Descriptions of the buttons: value and text associated to the buttons.
- xint
Horizontal position of the control.
- yint
Vertical position of the control.
- wint
Width of the control.
- hint
Height of the control, default 0.
- textstr
Text of the group control, default empty.
- kwargsAny
Other parameters of
scade.tool.suite.gui.widgets.GroupBox.
Initialize the radio box with the given parameters.
Overview#
Import detail#
from ansys.scade.guitools.control import RadioBox
Attribute detail#
- RadioBox.owner#
- RadioBox.text = ''#
Method detail#
- RadioBox.on_layout()#
Declare the constraints with respect to the owner.