2.9.2 Window Objects

Python PEP

2.9.2 Window Objects

Window objects have the following methods, among others:

Override this method to open a window. Store the MacOS window-id in self.wid and call the do_postopen() method to register the window with the parent application.

Override this method to do any special processing on window close. Call the do_postclose() method to cleanup the parent state.

Called after the window is resized. Override if more needs to be done than calling InvalRect.

The user clicked in the content part of a window. The arguments are the coordinates (window-relative), the key modifiers and the raw event.

An update event for the window was received. Redraw the window.

The window was activated (activate == 1) or deactivated (activate == 0). Handle things like focus highlighting, etc.

See About this document... for information on suggesting changes.