ContainerPage#

class ansys.scade.guitools.page.ContainerPage(page: Page | None, label_width: int)#

Base class for property or settings pages.

It maintains a list of controls for automatic layout, or to show or hide an entire page.

The controls are automatically added on two columns: labels and edits.

Parameters#

pagePage | None

Owner page for controls.

If this parameter is not known at initialization, make sure the attribute self.page is defined before creating any control.

label_widthint

Width of the first column.

Overview#

add_check_button

Add a CheckButton control to the page.

add_combo_box

Add a ComboBox control to the page.

add_control

Add an existing control to the page’s list of controls.

add_edit

Add a Edit control to the page.

add_file_selector

Add a FileSelector to the page.

add_group_radio_box

Add a GroupRadioBox control to the page.

add_object_combo_box

Add a ObjectComboBox control to the page.

add_radio_box

Add a RadioBox control to the page.

add_static_combo_box

Add a StaticComboBox control to the page.

add_static_edit

Add a StaticEdit control to the page.

add_static_object_combo_box

Add a StaticObjectComboBox control to the page.

add_static_radio_box

Add a StaticRadioBox control to the page.

layout_controls

Declare the contained control’s constraints.

show_controls

Show or hide the contained controls.

Import detail#

from ansys.scade.guitools.page import ContainerPage

Attribute detail#

ContainerPage.controls = []#
ContainerPage.label_width#
ContainerPage.page#

Method detail#

ContainerPage.add_check_button(y: int, text: str, **kwargs) ansys.scade.guitools.control.CheckButton#

Add a CheckButton control to the page.

ContainerPage.add_combo_box(y: int, text: str, **kwargs) ansys.scade.guitools.control.ComboBox#

Add a ComboBox control to the page.

ContainerPage.add_control(control)#

Add an existing control to the page’s list of controls.

ContainerPage.add_edit(y: int, **kwargs) ansys.scade.guitools.control.Edit#

Add a Edit control to the page.

ContainerPage.add_file_selector(y: int, text: str, extension: str, dir: str, filter: str, mode: ansys.scade.guitools.control.FSM, **kwargs) ansys.scade.guitools.control.FileSelector#

Add a FileSelector to the page.

ContainerPage.add_group_radio_box(y: int, text: str, buttons: List[Tuple[Any, str]], **kwargs) ansys.scade.guitools.control.GroupRadioBox#

Add a GroupRadioBox control to the page.

ContainerPage.add_object_combo_box(y: int, text: str, **kwargs) ansys.scade.guitools.control.ObjectComboBox#

Add a ObjectComboBox control to the page.

ContainerPage.add_radio_box(y: int, buttons: List[Tuple[Any, str]], **kwargs) ansys.scade.guitools.control.RadioBox#

Add a RadioBox control to the page.

ContainerPage.add_static_combo_box(y: int, text: str, **kwargs) ansys.scade.guitools.control.StaticComboBox#

Add a StaticComboBox control to the page.

ContainerPage.add_static_edit(y: int, text: str, **kwargs) ansys.scade.guitools.control.StaticEdit#

Add a StaticEdit control to the page.

ContainerPage.add_static_object_combo_box(y: int, text: str, **kwargs) ansys.scade.guitools.control.StaticObjectComboBox#

Add a StaticObjectComboBox control to the page.

ContainerPage.add_static_radio_box(y: int, text: str, buttons: List[Tuple[Any, str]], **kwargs) ansys.scade.guitools.control.StaticRadioBox#

Add a StaticRadioBox control to the page.

ContainerPage.layout_controls()#

Declare the contained control’s constraints.

ContainerPage.show_controls(show: bool)#

Show or hide the contained controls.