PropertyPageEx#

class ansys.scade.guitools.page.PropertyPageEx(label_width: int, *args, **kwargs)#

Bases: scade.tool.suite.gui.properties.Page, ContainerPage

Provides a base class for property pages.

This class also provides means to manage the sizing of most common controls and their serialization.

It introduces a new abstract method that must be implemented for building the controls.

Parameters#

label_widthint

Width of the labels, displayed before the controls on the same line.

Overview#

on_build_ex

Build the controls and return an optional object for managing the persistence.

on_build

Build the properties page.

on_context

Declare the models the page should consider.

on_display

Update the page with the properties read from the models.

on_layout

Specify how controls are moved or resized.

on_validate

Update the models with the properties read from the page.

Import detail#

from ansys.scade.guitools.page import PropertyPageEx

Attribute detail#

PropertyPageEx.ddx: ansys.scade.guitools.interfaces.IPropertiesDataExchange | None = None#
PropertyPageEx.models: List[Any] = []#

Method detail#

PropertyPageEx.on_build()#

Build the properties page.

abstract PropertyPageEx.on_build_ex() ansys.scade.guitools.interfaces.IPropertiesDataExchange | None#

Build the controls and return an optional object for managing the persistence.

Returns#

Optional[IPropertiesDataExchange]

Object for exchanging data between the models and the controls.

PropertyPageEx.on_context(models: List[Any])#

Declare the models the page should consider.

Parameters#

modelsList[Any]

List of selected objects in the IDE.

PropertyPageEx.on_display()#

Update the page with the properties read from the models.

PropertyPageEx.on_layout()#

Specify how controls are moved or resized.

PropertyPageEx.on_validate()#

Update the models with the properties read from the page.