FL.objects.Dialog.Dialog
- class FL.objects.Dialog.Dialog
Bases:
objectDialog - class to represent Dialog
Dialog.__doc__ reports only ‘Dialog’ … so use this information with care)
See ‘yourFontLabFolder/Macros/Effects/digital.py’ for an example
Methods
AddControl(ControlType, dimension, ...)Adds a control to the dialog, see FLdict for Type- and Style-constants
Center()Center dialog on screen
Enable(identifier, value)Enable (value=1) or disable (value=0) the specified control
End([returnvalue])End the dialog
GetRect(identifier)Get dimension of the specified control as a Rect object
GetValue(identifier)Get value from the specified control
PutValue(identifier)Put value to the specified control
Repaint(identifier)Redraw the specified (custom)control
Run()Run the dialog
SetLabel(identifier, value)Set the label of the specified control
Show(identifier, value)Show (value=1) or hide (value=0) the specified control
__init__()Dialog(DialogClass) - generic constructor
Attributes
sizetitle- AddControl(ControlType: int, dimension: Rect, identifier: str, ControlStyle: int) None
Adds a control to the dialog, see FLdict for Type- and Style-constants
- Enable(identifier: str, value: int) None
Enable (value=1) or disable (value=0) the specified control
- End(returnvalue: int | None = None)
End the dialog
- Parameters:
returnvalue (int | None, optional) – _description_. Defaults to None.
- GetRect(identifier: str) Rect
Get dimension of the specified control as a Rect object
- Parameters:
identifier (str) – _description_
- GetValue(identifier: str) Any
Get value from the specified control
- Parameters:
identifier (str) – _description_
- Returns:
_description_
- Return type:
Any
- PutValue(identifier: str) None
Put value to the specified control
- Parameters:
identifier (str) – _description_
- Repaint(identifier: str) None
Redraw the specified (custom)control
- Parameters:
identifier (str) – _description_