--- 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](projects\project-properties\project-properties.md#client---permissions) 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.| ### Returns Nothing ### Scope Client ## Code Examples ```python title="Code Snippet" # 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) ```