system.vision.closeParentWindow
Backwards Compatibility
This function replaces system.nav.closeParentWindow. Any scripts containing Vision Client scoped functions that were replaced with system.vision syntax will still work to maintain backwards compatibility.
This function is used in Python Scripting.
Descriptionβ
Closes the parent window given a component event object.
note
This function is available on secondary desktops via the system.vision.desktop function. See the Multi-Monitor Clients page for more details on secondary desktops.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.vision.closeParentWindow(event)
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| EventObject | event | A component event object. The enclosing window for the component will be closed. Refer to EventObject. |
Returnsβ
Nothing
Scopeβ
Vision Client
Code Examplesβ
Example #1
# This code would be placed in the actionPerformed event of a button,
# and would close the window that contained the button.
system.vision.closeParentWindow(event)