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. Only the system.vision variations will appear in the Script Editor's autocomplete popup.
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)