Application objects have the following methods, among others:
) |
) |
[mask[, wait]]) |
self._quit()
instead.
The event loop is split into many small parts, each of which can be overridden. The default methods take care of dispatching events to windows and dialogs, handling drags and resizes, Apple Events, events for non-FrameWork windows, etc.
In general, all event handlers should return 1
if the event is fully
handled and 0
otherwise (because the front window was not a FrameWork
window, for instance). This is needed so that update events and such
can be passed on to other windows like the Sioux console window.
Calling MacOS.HandleEvent() is not allowed within
our_dispatch or its callees, since this may result in an
infinite loop if the code is called through the Python inner-loop
event handler.
onoff) |
The old on/off value is returned.
) |
c, event) |
Window
object, which overrides the
application-wide handler if the window is frontmost.
event) |
DialogWindow
object involved). Override if you
need special handling of dialog events (keyboard shortcuts, etc).
event) |
Vedete Circa questo documento... per informazioni su modifiche e suggerimenti.