(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/mac/controlswindow-object.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/mac/module-FrameWork.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/mac/application-objects.html| ]]
|
Macintosh Library Modules
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/mac/contents.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/mac/modindex.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/mac/genindex.html| ]]
|
Next: 15.3 ControlsWindow Object Up: 15. FrameWork Previous: 15.1 Application Objects
15.2 Window Objects
Window objects have the following methods, among others:
- open ()
- 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.
- close ()
- Override this method to do any special processing on window close. Call the do_postclose() method to cleanup the parent state.
- do_postresize (width, height, macoswindowid)
- Called after the window is resized. Override if more needs to be done than calling
InvalRect.
- 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 event.
- 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.
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/mac/controlswindow-object.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/mac/module-FrameWork.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/mac/application-objects.html| ]]
|
Macintosh Library Modules
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/mac/contents.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/mac/modindex.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/mac/genindex.html| ]]
|
Next: 15.3 ControlsWindow Object Up: 15. FrameWork Previous: 15.1 Application Objects
Send comments on this document to python-docs@python.org.