FrameWork -- Python library reference
Prev: EasyDialogs
Up: Macintosh Specific Services
Top: Top
14.12. Standard module FrameWork
The FrameWork
module contains classes that together provide a
framework for an interactive Macintosh application. The programmer
builds an application by creating subclasses that override various
methods of the bases classes, thereby implementing the functionality
wanted. Overriding functionality can often be done on various
different levels, i.e. to handle clicks in a single dialog window in a
non-standard way it is not necessary to override the complete event
handling.
The FrameWork
is still very much work-in-progress, and the
documentation describes only the most important functionality, and not
in the most logical manner at that. Examine the source for more
esoteric needs.
The EasyDialogs
module defines the following functions:
- Application () -- function of module FrameWork
-
An object representing the complete application. See below for a
description of the methods. The default
__init__
routine
creates an empty window dictionary and a menu bar with an apple menu.
- MenuBar () -- function of module FrameWork
-
An object representing the menubar. This object is usually not created
by the user.
- Menu (bar, title[, after]) -- function of module FrameWork
-
An object representing a menu. Upon creation you pass the
MenuBar
the menu appears in, the title string and a
position (1-based) after where the menu should appear (default:
at the end).
- MenuItem (menu, title[, shortcut, callback]) -- function of module FrameWork
-
Create a menu item object. The arguments are the menu to crate the
item it, the item title string and optionally the keyboard shortcut
and a callback routine. The callback is called with the arguments
menu-id, item number within menu (1-based), current front window and
the event record.
- Separator (menu) -- function of module FrameWork
-
Add a separator to the end of a menu.
- SubMenu (menu, label) -- function of module FrameWork
-
Create a submenu named label under menu menu. The menu
object is returned.
- Window (parent) -- function of module FrameWork
-
Creates a (modeless) window. Parent is the application object to
which the window belongs. The window is not displayed until later.
- DialogWindow (parent) -- function of module FrameWork
-
Creates a modeless dialog window.
Menu
- Application objects
- Window Objects
- DialogWindow Objects
Prev: EasyDialogs
Up: Macintosh Specific Services
Top: Top