Top  | Previous | Next

system.gui.getParentWindow

Description

Finds the parent (enclosing) window for the component that fired an event, returning a reference to it.

Syntax

system.gui.getParentWindow(event)

Parameters

EventObject event - A component event object.

Returns

PyObject - The window that contains the component that fired the event.

Scope

Client

Examples

Use this in an event script to change the window's title.

 

window = system.gui.getParentWindow(event)
window.title='This is a new title'