--- title: "system.gui.getParentWindow" description: "Finds the parent (enclosing) window for the component that fired an event and returns a reference to it." --- # system.gui.getParentWindow > Finds the parent (enclosing) window for the component that fired an event and returns a reference to it. This function is used in **Python Scripting**. ## Description ## Client Permission Restrictions This scripting function has no [Client Permission](../../../ignition-modules/vision/vision-project-properties/vision-project-properties.md#vision-permissions-properties) restrictions. ## Syntax `system.gui.getParentWindow(event)` ### Parameters Type | Parameter | Description ------- | ------- | ------ EventObject| `event` | A component event object. ### Returns **FPMIWindow** - The [window](appendix\components\vision-components\vision-window-object\vision-window-object.md) that contains the component that fired the event. ### Scope Vision Client ## Code Examples ```python title="Example #1 - Getting Window and Changing Its Title" # Use this in an event script to change the window's title. window = system.gui.getParentWindow(event) window.title='This is a new title' ```