2.11.1 Application Objects Application objects have the
following methods, among others: Override this method if you
need menus in your application. Append the menus to the
attribute menubar. Override this method to return a text string
describing your application. Alternatively, override the
do_about() method for more elaborate ``about'' messages. -
mainloop([mask[, wait]]) This routine is the main event loop,
call it to set your application rolling. Mask is the mask of
events you want to handle, wait is the number of ticks you want
to leave to other concurrent application (default 0, which is
probably not a good idea). While raising self to exit the
mainloop is still supported it is not recommended: call 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 0