FormGenerator.
More...
|
| def | __init__ (self, ElementData, readAction=None, addButtons=True, test=False, okText=None) |
| | Constructor. More...
|
| |
|
def | setupInputs (self) |
| | Calls constructor of inputWidget for each InputDescription depending on its inType.
|
| |
|
def | setupButtons (self) |
| | Creates close, clear and read buttons in the bottom of the form.
|
| |
|
def | closeAction (self) |
| | Close the form.
|
| |
|
def | clear (self) |
| | Clears all inputs of the form.
|
| |
| def | read (self) |
| | Reads the form. More...
|
| |
|
|
| formData |
| |
|
| readme |
| |
|
| okText |
| |
|
| layout |
| |
|
| inputs |
| |
FormGenerator.
Generate an input form for interacting with PyPO.
◆ __init__()
| def GUI.ParameterForms.formGenerator.FormGenerator.__init__ |
( |
|
self, |
|
|
|
ElementData, |
|
|
|
readAction = None, |
|
|
|
addButtons = True, |
|
|
|
test = False, |
|
|
|
okText = None |
|
) |
| |
Constructor.
Creates a form widget given a list of InputDescription.
- Parameters
-
| ElementData | List of InputDescription objects. |
| readAction | Function to be called upon clicking OK button. |
| addButtons | Boolean. Determines weather there will be buttons in the bottom of the form. |
| test | Boolean. If true, buttons can be added without the need to provide a readAction. |
| okText | String. Text used as label for the OK button. Defaults to "add" |
◆ read()
| def GUI.ParameterForms.formGenerator.FormGenerator.read |
( |
|
self | ) |
|
Reads the form.
- Returns
- A dictionary containing the values read form the form.
The documentation for this class was generated from the following file: