Deadline Scripting Reference
10.1.23.6
|
Inherits ScriptDialog.
Public Member Functions | |
def | __init__ (self, parent=None) |
def | AddControl (self, name, control, value, width=-1, height=-1, tooltip="") |
def | closeEvent (self, event) |
def | EnabledStickySaving (self, settings, iniLocation) |
A convenient dialog class that can be used to create user interfaces for scripts.
def DeadlineScriptDialog.DeadlineScriptDialog.__init__ | ( | self, | |
parent = None |
|||
) |
Constructor
def DeadlineScriptDialog.DeadlineScriptDialog.AddControl | ( | self, | |
name, | |||
control, | |||
value, | |||
width = -1 , |
|||
height = -1 , |
|||
tooltip = "" |
|||
) |
Adds a control to the panel. name: A unique name for the control. If the name is not unique, an error will be thrown. control: The control type. The options are ButtonControl, ColorControl, DependencyControl, GroupComboControl, LabelControl, LimitGroupControl, MachineListControl, MultiLineTextControl, OnJobCompleteControl, PasswordControl, PoolComboControl, ReadOnlyTextControl, SecondaryPoolComboControl, SeparatorControl, SlaveListControl, and TextControl. value: The value for the control. width: The width of the control, or -1 to use the default. height: The height of the control, or -1 to use the default. tooltip: A tooltip for the control.
def DeadlineScriptDialog.DeadlineScriptDialog.closeEvent | ( | self, | |
event | |||
) |
Close event. Sticky settings should be saved on close, if an ini file location and some sticky settings have been specified.
def DeadlineScriptDialog.DeadlineScriptDialog.EnabledStickySaving | ( | self, | |
settings, | |||
iniLocation | |||
) |
Sets the setting names and ini file location for saving sticky settings on close. settings: A list of control names that we want sticky settings for. iniLocation: The location of the ini file to save.