DialogBox#
- class ansys.scade.guitools.dialog.DialogBox(title: str, width: int, height: int, nc: bool = False, style: DS = DS.NONE, **kwargs)#
Bases:
scade.tool.suite.gui.dialogs.DialogDefines a dialog box with optional default button management.
Parameters#
- title: str
Title of the dialog box.
- width: int
Width of the client area if
ncisFalse, otherwise overall width of the dialog box.- height: int
Height of the client area if
ncisFalse, otherwise overall width of the dialog box.- nc: bool
Whether the provided dimensions are for the overall dialog box or for its client area, default
False.- kwargs: Any
Other parameters of
scade.tool.suite.gui.dialog.Dialog.
Initialize the dialog box.
Overview#
Build the controls. |
Build the dialog with the specified dialog validation buttons. |
|
Close the dialog when Cancel is pressed. |
|
Close the dialog when Close is pressed. |
|
Close the dialog when No is pressed. |
|
Close the dialog when OK is pressed. |
|
Close the dialog when Retry is pressed. |
|
Close the dialog when Yes is pressed. |
Import detail#
from ansys.scade.guitools.dialog import DialogBox
Property detail#
Method detail#
- DialogBox.on_build()#
Build the dialog with the specified dialog validation buttons.
- abstract DialogBox.on_build_ex()#
Build the controls.
- DialogBox.on_click_cancel(*args)#
Close the dialog when Cancel is pressed.
- DialogBox.on_click_close(*args)#
Close the dialog when Close is pressed.
- DialogBox.on_click_no(*args)#
Close the dialog when No is pressed.
- DialogBox.on_click_ok(*args)#
Close the dialog when OK is pressed.
- DialogBox.on_click_retry(*args)#
Close the dialog when Retry is pressed.
- DialogBox.on_click_yes(*args)#
Close the dialog when Yes is pressed.