IGuiHostClient#

class ansys.scade.guitools.interfaces.IGuiHostClient#

Bases: abc.ABC

Defines the interface for hosted pages.

Overview#

is_available

Return whether the page is available for the current selection.

on_build

Build the controls.

on_close

Perform any cleaning before the page is closed.

on_display

Update the page with the properties read from the models.

on_layout

Declare the contained control’s constraints.

on_validate

Update the models with the properties read from the page.

set_models

Declare the models the page should consider.

show

Show or hide the page.

Import detail#

from ansys.scade.guitools.interfaces import IGuiHostClient

Method detail#

abstract IGuiHostClient.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.

abstract IGuiHostClient.on_build(page: scade.tool.suite.gui.properties.Page, y: int) int#

Build the controls.

Parameters#

pagePropertyPage

Owning property page, to create controls.

yint

Start vertical position.

abstract IGuiHostClient.on_close()#

Perform any cleaning before the page is closed.

abstract IGuiHostClient.on_display()#

Update the page with the properties read from the models.

abstract IGuiHostClient.on_layout()#

Declare the contained control’s constraints.

abstract IGuiHostClient.on_validate()#

Update the models with the properties read from the page.

abstract IGuiHostClient.set_models(models: List[Any])#

Declare the models the page should consider.

Parameters#

modelsList[Any]

List of selected objects in the IDE.

abstract IGuiHostClient.show(show: bool)#

Show or hide the page.

This consists in showing or hiding the contained controls.

Parameters#

showbool

Whether the page should be shown or hidden.