Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 | <html> | |
3 | <head> | |
4 | <link rel="STYLESHEET" href="mac.css" type='text/css' /> | |
5 | <link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" /> | |
6 | <link rel='start' href='../index.html' title='Python Documentation Index' /> | |
7 | <link rel="first" href="mac.html" title='Macintosh Library Modules' /> | |
8 | <link rel='contents' href='contents.html' title="Contents" /> | |
9 | <link rel='index' href='genindex.html' title='Index' /> | |
10 | <link rel='last' href='about.html' title='About this document...' /> | |
11 | <link rel='help' href='about.html' title='About this document...' /> | |
12 | <link rel="prev" href="module-aetypes.html" /> | |
13 | <link rel="parent" href="scripting.html" /> | |
14 | <link rel="next" href="aeserver-objects.html" /> | |
15 | <meta name='aesop' content='information' /> | |
16 | <title>3.5 MiniAEFrame -- Open Scripting Architecture server support</title> | |
17 | </head> | |
18 | <body> | |
19 | <DIV CLASS="navigation"> | |
20 | <div id='top-navigation-panel' xml:id='top-navigation-panel'> | |
21 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> | |
22 | <tr> | |
23 | <td class='online-navigation'><a rel="prev" title="3.4 aetypes " | |
24 | href="module-aetypes.html"><img src='../icons/previous.png' | |
25 | border='0' height='32' alt='Previous Page' width='32' /></A></td> | |
26 | <td class='online-navigation'><a rel="parent" title="3. MacPython OSA Modules" | |
27 | href="scripting.html"><img src='../icons/up.png' | |
28 | border='0' height='32' alt='Up One Level' width='32' /></A></td> | |
29 | <td class='online-navigation'><a rel="next" title="3.5.1 AEServer Objects" | |
30 | href="aeserver-objects.html"><img src='../icons/next.png' | |
31 | border='0' height='32' alt='Next Page' width='32' /></A></td> | |
32 | <td align="center" width="100%">Macintosh Library Modules</td> | |
33 | <td class='online-navigation'><a rel="contents" title="Table of Contents" | |
34 | href="contents.html"><img src='../icons/contents.png' | |
35 | border='0' height='32' alt='Contents' width='32' /></A></td> | |
36 | <td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png' | |
37 | border='0' height='32' alt='Module Index' width='32' /></a></td> | |
38 | <td class='online-navigation'><a rel="index" title="Index" | |
39 | href="genindex.html"><img src='../icons/index.png' | |
40 | border='0' height='32' alt='Index' width='32' /></A></td> | |
41 | </tr></table> | |
42 | <div class='online-navigation'> | |
43 | <b class="navlabel">Previous:</b> | |
44 | <a class="sectref" rel="prev" href="module-aetypes.html">3.4 aetypes </A> | |
45 | <b class="navlabel">Up:</b> | |
46 | <a class="sectref" rel="parent" href="scripting.html">3. MacPython OSA Modules</A> | |
47 | <b class="navlabel">Next:</b> | |
48 | <a class="sectref" rel="next" href="aeserver-objects.html">3.5.1 AEServer Objects</A> | |
49 | </div> | |
50 | <hr /></div> | |
51 | </DIV> | |
52 | <!--End of Navigation Panel--> | |
53 | ||
54 | <H1><A NAME="SECTION005500000000000000000"> | |
55 | 3.5 <tt class="module">MiniAEFrame</tt> -- | |
56 | Open Scripting Architecture server support</A> | |
57 | </H1> | |
58 | ||
59 | <P> | |
60 | <A NAME="module-MiniAEFrame"></A> | |
61 | <p class="availability">Availability: <span | |
62 | class="platform">Macintosh</span>.</p> | |
63 | ||
64 | <P> | |
65 | The module <tt class="module">MiniAEFrame</tt> provides a framework for an application | |
66 | that can function as an Open Scripting Architecture | |
67 | <a id='l2h-176' xml:id='l2h-176'></a> | |
68 | (OSA) server, i.e. receive and process | |
69 | AppleEvents<a id='l2h-177' xml:id='l2h-177'></a>. It can be used in conjunction with | |
70 | <tt class="module"><a href="module-FrameWork.html">FrameWork</a></tt><a id='l2h-178' xml:id='l2h-178'></a> or standalone. As an | |
71 | example, it is used in <b class="program">PythonCGISlave</b>. | |
72 | ||
73 | <P> | |
74 | The <tt class="module">MiniAEFrame</tt> module defines the following classes: | |
75 | ||
76 | <P> | |
77 | <dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
78 | <td><nobr><b><span class="typelabel">class</span> <tt id='l2h-174' xml:id='l2h-174' class="class">AEServer</tt></b>(</nobr></td> | |
79 | <td><var></var>)</td></tr></table></dt> | |
80 | <dd> | |
81 | A class that handles AppleEvent dispatch. Your application should | |
82 | subclass this class together with either | |
83 | <tt class="class">MiniApplication</tt> or | |
84 | <tt class="class">FrameWork.Application</tt>. Your <tt class="method">__init__()</tt> method should | |
85 | call the <tt class="method">__init__()</tt> method for both classes. | |
86 | </dl> | |
87 | ||
88 | <P> | |
89 | <dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
90 | <td><nobr><b><span class="typelabel">class</span> <tt id='l2h-175' xml:id='l2h-175' class="class">MiniApplication</tt></b>(</nobr></td> | |
91 | <td><var></var>)</td></tr></table></dt> | |
92 | <dd> | |
93 | A class that is more or less compatible with | |
94 | <tt class="class">FrameWork.Application</tt> but with less functionality. Its | |
95 | event loop supports the apple menu, command-dot and AppleEvents; other | |
96 | events are passed on to the Python interpreter and/or Sioux. | |
97 | Useful if your application wants to use <tt class="class">AEServer</tt> but does not | |
98 | provide its own windows, etc. | |
99 | </dl> | |
100 | ||
101 | <P> | |
102 | ||
103 | <p><br /></p><hr class='online-navigation' /> | |
104 | <div class='online-navigation'> | |
105 | <!--Table of Child-Links--> | |
106 | <A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></a> | |
107 | ||
108 | <UL CLASS="ChildLinks"> | |
109 | <LI><A href="aeserver-objects.html">3.5.1 AEServer Objects</a> | |
110 | </ul> | |
111 | <!--End of Table of Child-Links--> | |
112 | </div> | |
113 | ||
114 | <DIV CLASS="navigation"> | |
115 | <div class='online-navigation'> | |
116 | <p></p><hr /> | |
117 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> | |
118 | <tr> | |
119 | <td class='online-navigation'><a rel="prev" title="3.4 aetypes " | |
120 | href="module-aetypes.html"><img src='../icons/previous.png' | |
121 | border='0' height='32' alt='Previous Page' width='32' /></A></td> | |
122 | <td class='online-navigation'><a rel="parent" title="3. MacPython OSA Modules" | |
123 | href="scripting.html"><img src='../icons/up.png' | |
124 | border='0' height='32' alt='Up One Level' width='32' /></A></td> | |
125 | <td class='online-navigation'><a rel="next" title="3.5.1 AEServer Objects" | |
126 | href="aeserver-objects.html"><img src='../icons/next.png' | |
127 | border='0' height='32' alt='Next Page' width='32' /></A></td> | |
128 | <td align="center" width="100%">Macintosh Library Modules</td> | |
129 | <td class='online-navigation'><a rel="contents" title="Table of Contents" | |
130 | href="contents.html"><img src='../icons/contents.png' | |
131 | border='0' height='32' alt='Contents' width='32' /></A></td> | |
132 | <td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png' | |
133 | border='0' height='32' alt='Module Index' width='32' /></a></td> | |
134 | <td class='online-navigation'><a rel="index" title="Index" | |
135 | href="genindex.html"><img src='../icons/index.png' | |
136 | border='0' height='32' alt='Index' width='32' /></A></td> | |
137 | </tr></table> | |
138 | <div class='online-navigation'> | |
139 | <b class="navlabel">Previous:</b> | |
140 | <a class="sectref" rel="prev" href="module-aetypes.html">3.4 aetypes </A> | |
141 | <b class="navlabel">Up:</b> | |
142 | <a class="sectref" rel="parent" href="scripting.html">3. MacPython OSA Modules</A> | |
143 | <b class="navlabel">Next:</b> | |
144 | <a class="sectref" rel="next" href="aeserver-objects.html">3.5.1 AEServer Objects</A> | |
145 | </div> | |
146 | </div> | |
147 | <hr /> | |
148 | <span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span> | |
149 | </DIV> | |
150 | <!--End of Navigation Panel--> | |
151 | <ADDRESS> | |
152 | See <i><a href="about.html">About this document...</a></i> for information on suggesting changes. | |
153 | </ADDRESS> | |
154 | </BODY> | |
155 | </HTML> |