--- title: "system.nav.closeParentWindow" description: "Closes the parent window given a component event object." --- # system.nav.closeParentWindow > Closes the parent window given a component event object. This function is used in **Python Scripting**. ## Description ## Client Permission Restrictions This scripting function has no Client Permission restrictions. ## Syntax `system.nav.closeParentWindow(event)` ### Parameters Type | Parameter | Description ------- | ------- | ------ EventObject | `event` | A component event object. The enclosing window for the component will be closed. Refer to [EventObject](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/EventObject.html). ### Returns Nothing ### Scope Vision Client ## Code Examples ```python title="Example #1" # This code would be placed in the actionPerformed event of a button, # and would close the window that contained the button. system.nav.closeParentWindow(event) ```