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.pageis defined before creating any control.- label_widthint
Width of the first column.
Overview#
Add a |
|
Add a |
|
Add an existing control to the page’s list of controls. |
|
Add a |
|
Add a |
|
Add a |
|
Add a |
|
Add a |
|
Add a |
|
Add a |
|
Add a |
|
Add a |
|
Declare the contained control’s constraints. |
|
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
CheckButtoncontrol to the page.
- ContainerPage.add_combo_box(y: int, text: str, **kwargs) ansys.scade.guitools.control.ComboBox#
Add a
ComboBoxcontrol 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
Editcontrol 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
FileSelectorto the page.
- ContainerPage.add_group_radio_box(y: int, text: str, buttons: List[Tuple[Any, str]], **kwargs) ansys.scade.guitools.control.GroupRadioBox#
Add a
GroupRadioBoxcontrol to the page.
- ContainerPage.add_object_combo_box(y: int, text: str, **kwargs) ansys.scade.guitools.control.ObjectComboBox#
Add a
ObjectComboBoxcontrol to the page.
- ContainerPage.add_radio_box(y: int, buttons: List[Tuple[Any, str]], **kwargs) ansys.scade.guitools.control.RadioBox#
Add a
RadioBoxcontrol to the page.
- ContainerPage.add_static_combo_box(y: int, text: str, **kwargs) ansys.scade.guitools.control.StaticComboBox#
Add a
StaticComboBoxcontrol to the page.
- ContainerPage.add_static_edit(y: int, text: str, **kwargs) ansys.scade.guitools.control.StaticEdit#
Add a
StaticEditcontrol to the page.
- ContainerPage.add_static_object_combo_box(y: int, text: str, **kwargs) ansys.scade.guitools.control.StaticObjectComboBox#
Add a
StaticObjectComboBoxcontrol 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
StaticRadioBoxcontrol to the page.
- ContainerPage.layout_controls()#
Declare the contained control’s constraints.