Next: 15.13.3 ControlsWindow Object
Up: 15.13 Standard module FrameWork
Previous: 15.13.1 Application 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
self.do_postopen to register the
window with the parent application.
Override this method to do any special processing on window
self.do_postclose to cleanup the parent state.
- do_postresize(width, height, macoswindowid)
Called after the window is resized. Override if more needs to be done
- do_contentclick(local, modifiers, event)
The user clicked in the content part of a window. The arguments are
the coordinates (window-relative), the key modifiers and the raw
- do_update(macoswindowid, event)
An update event for the window was received. Redraw the window.
- do_activate(activate, event)
The window was activated (
activate==1) or deactivated
activate==0). Handle things like focus highlighting, etc.