GuiHostClientPage#
- class ansys.scade.guitools.page.GuiHostClientPage(*args, **kwargs)#
Bases:
ansys.scade.guitools.interfaces.IGuiHostClient,ContainerPageDefault implementation for GuiHost pages.
Overview#
Build the controls and return an optional object for managing the persistence. |
Return a new list of models from the selection. |
|
Return whether the page is available for the current selection. |
|
Build the property page. |
|
Perform any cleaning before the page is closed. |
|
Update the page with the properties read from the models. |
|
Declare the contained control’s constraints. |
|
Update the models with the properties read from the page. |
|
Declare the models the page should consider. |
|
Show or hide the page. |
Import detail#
from ansys.scade.guitools.page import GuiHostClientPage
Attribute detail#
- GuiHostClientPage.ddx: ansys.scade.guitools.interfaces.IPropertiesDataExchange | None = None#
Method detail#
- GuiHostClientPage.get_selected_models(models: List[Any]) List[Any]#
Return a new list of models from the selection.
For example, replaces selected graphical elements by their associated semantic ones.
Parameters#
- modelsList[Any]
List of selected objects in the IDE.
Returns#
- List[Any]
List of objects to consider.
- GuiHostClientPage.is_available(models: List[Any]) bool#
Return whether the page is available for the current selection.
Parameters#
- modelsList[Any]
List of selected objects in the IDE.
- GuiHostClientPage.on_build(page: scade.tool.suite.gui.properties.Page, y: int)#
Build the property page.
- abstract GuiHostClientPage.on_build_ex(y: int) ansys.scade.guitools.interfaces.IPropertiesDataExchange | None#
Build the controls and return an optional object for managing the persistence.
Parameters#
- yint
Start vertical position.
Returns#
- Optional[IPropertiesDataExchange]
Object for exchanging data between the models and the controls.
- GuiHostClientPage.on_close()#
Perform any cleaning before the page is closed.
- GuiHostClientPage.on_display()#
Update the page with the properties read from the models.
- GuiHostClientPage.on_layout()#
Declare the contained control’s constraints.
- GuiHostClientPage.on_validate()#
Update the models with the properties read from the page.