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="lib.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="lib.html" title='Python Library Reference' /> | |
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="next" href="forms-objects.html" /> | |
13 | <link rel="prev" href="node807.html" /> | |
14 | <link rel="parent" href="module-fl.html" /> | |
15 | <link rel="next" href="forms-objects.html" /> | |
16 | <meta name='aesop' content='information' /> | |
17 | <title>20.4.2 Form Objects</title> | |
18 | </head> | |
19 | <body> | |
20 | <DIV CLASS="navigation"> | |
21 | <div id='top-navigation-panel' xml:id='top-navigation-panel'> | |
22 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> | |
23 | <tr> | |
24 | <td class='online-navigation'><a rel="prev" title="20.4.1 Functions Defined in" | |
25 | href="node807.html"><img src='../icons/previous.png' | |
26 | border='0' height='32' alt='Previous Page' width='32' /></A></td> | |
27 | <td class='online-navigation'><a rel="parent" title="20.4 fl " | |
28 | href="module-fl.html"><img src='../icons/up.png' | |
29 | border='0' height='32' alt='Up One Level' width='32' /></A></td> | |
30 | <td class='online-navigation'><a rel="next" title="20.4.3 FORMS Objects" | |
31 | href="forms-objects.html"><img src='../icons/next.png' | |
32 | border='0' height='32' alt='Next Page' width='32' /></A></td> | |
33 | <td align="center" width="100%">Python Library Reference</td> | |
34 | <td class='online-navigation'><a rel="contents" title="Table of Contents" | |
35 | href="contents.html"><img src='../icons/contents.png' | |
36 | border='0' height='32' alt='Contents' width='32' /></A></td> | |
37 | <td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png' | |
38 | border='0' height='32' alt='Module Index' width='32' /></a></td> | |
39 | <td class='online-navigation'><a rel="index" title="Index" | |
40 | href="genindex.html"><img src='../icons/index.png' | |
41 | border='0' height='32' alt='Index' width='32' /></A></td> | |
42 | </tr></table> | |
43 | <div class='online-navigation'> | |
44 | <b class="navlabel">Previous:</b> | |
45 | <a class="sectref" rel="prev" href="node807.html">20.4.1 Functions Defined in</A> | |
46 | <b class="navlabel">Up:</b> | |
47 | <a class="sectref" rel="parent" href="module-fl.html">20.4 fl </A> | |
48 | <b class="navlabel">Next:</b> | |
49 | <a class="sectref" rel="next" href="forms-objects.html">20.4.3 FORMS Objects</A> | |
50 | </div> | |
51 | <hr /></div> | |
52 | </DIV> | |
53 | <!--End of Navigation Panel--> | |
54 | ||
55 | <H2><A NAME="SECTION0022420000000000000000"></A> | |
56 | <A NAME="form-objects"></A> | |
57 | <BR> | |
58 | 20.4.2 Form Objects | |
59 | </H2> | |
60 | ||
61 | <P> | |
62 | Form objects (returned by <tt class="function">make_form()</tt> above) have the | |
63 | following methods. Each method corresponds to a C function whose | |
64 | name is prefixed with "<tt class="samp">fl_</tt>"; and whose first argument is a form | |
65 | pointer; please refer to the official FORMS documentation for | |
66 | descriptions. | |
67 | ||
68 | <P> | |
69 | All the <tt class="method">add_*()</tt> methods return a Python object representing | |
70 | the FORMS object. Methods of FORMS objects are described below. Most | |
71 | kinds of FORMS object also have some methods specific to that kind; | |
72 | these methods are listed here. | |
73 | ||
74 | <P> | |
75 | <DIV ALIGN="LEFT"> | |
76 | </DIV> | |
77 | <P> | |
78 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
79 | <td><nobr><b><tt id='l2h-5140' xml:id='l2h-5140' class="method">show_form</tt></b>(</nobr></td> | |
80 | <td><var>placement, bordertype, name</var>)</td></tr></table></dt> | |
81 | <dd> | |
82 | Show the form. | |
83 | </dl> | |
84 | <DIV ALIGN="LEFT"> | |
85 | </DIV> | |
86 | <P> | |
87 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
88 | <td><nobr><b><tt id='l2h-5141' xml:id='l2h-5141' class="method">hide_form</tt></b>(</nobr></td> | |
89 | <td><var></var>)</td></tr></table></dt> | |
90 | <dd> | |
91 | Hide the form. | |
92 | </dl> | |
93 | <DIV ALIGN="LEFT"> | |
94 | </DIV> | |
95 | <P> | |
96 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
97 | <td><nobr><b><tt id='l2h-5142' xml:id='l2h-5142' class="method">redraw_form</tt></b>(</nobr></td> | |
98 | <td><var></var>)</td></tr></table></dt> | |
99 | <dd> | |
100 | Redraw the form. | |
101 | </dl> | |
102 | <DIV ALIGN="LEFT"> | |
103 | </DIV> | |
104 | <P> | |
105 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
106 | <td><nobr><b><tt id='l2h-5143' xml:id='l2h-5143' class="method">set_form_position</tt></b>(</nobr></td> | |
107 | <td><var>x, y</var>)</td></tr></table></dt> | |
108 | <dd> | |
109 | Set the form's position. | |
110 | </dl> | |
111 | <DIV ALIGN="LEFT"> | |
112 | </DIV> | |
113 | <P> | |
114 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
115 | <td><nobr><b><tt id='l2h-5144' xml:id='l2h-5144' class="method">freeze_form</tt></b>(</nobr></td> | |
116 | <td><var></var>)</td></tr></table></dt> | |
117 | <dd> | |
118 | Freeze the form. | |
119 | </dl> | |
120 | <DIV ALIGN="LEFT"> | |
121 | </DIV> | |
122 | <P> | |
123 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
124 | <td><nobr><b><tt id='l2h-5145' xml:id='l2h-5145' class="method">unfreeze_form</tt></b>(</nobr></td> | |
125 | <td><var></var>)</td></tr></table></dt> | |
126 | <dd> | |
127 | Unfreeze the form. | |
128 | </dl> | |
129 | <DIV ALIGN="LEFT"> | |
130 | </DIV> | |
131 | <P> | |
132 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
133 | <td><nobr><b><tt id='l2h-5146' xml:id='l2h-5146' class="method">activate_form</tt></b>(</nobr></td> | |
134 | <td><var></var>)</td></tr></table></dt> | |
135 | <dd> | |
136 | Activate the form. | |
137 | </dl> | |
138 | <DIV ALIGN="LEFT"> | |
139 | </DIV> | |
140 | <P> | |
141 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
142 | <td><nobr><b><tt id='l2h-5147' xml:id='l2h-5147' class="method">deactivate_form</tt></b>(</nobr></td> | |
143 | <td><var></var>)</td></tr></table></dt> | |
144 | <dd> | |
145 | Deactivate the form. | |
146 | </dl> | |
147 | <DIV ALIGN="LEFT"> | |
148 | </DIV> | |
149 | <P> | |
150 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
151 | <td><nobr><b><tt id='l2h-5148' xml:id='l2h-5148' class="method">bgn_group</tt></b>(</nobr></td> | |
152 | <td><var></var>)</td></tr></table></dt> | |
153 | <dd> | |
154 | Begin a new group of objects; return a group object. | |
155 | </dl> | |
156 | <DIV ALIGN="LEFT"> | |
157 | </DIV> | |
158 | <P> | |
159 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
160 | <td><nobr><b><tt id='l2h-5149' xml:id='l2h-5149' class="method">end_group</tt></b>(</nobr></td> | |
161 | <td><var></var>)</td></tr></table></dt> | |
162 | <dd> | |
163 | End the current group of objects. | |
164 | </dl> | |
165 | <DIV ALIGN="LEFT"> | |
166 | </DIV> | |
167 | <P> | |
168 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
169 | <td><nobr><b><tt id='l2h-5150' xml:id='l2h-5150' class="method">find_first</tt></b>(</nobr></td> | |
170 | <td><var></var>)</td></tr></table></dt> | |
171 | <dd> | |
172 | Find the first object in the form. | |
173 | </dl> | |
174 | <DIV ALIGN="LEFT"> | |
175 | </DIV> | |
176 | <P> | |
177 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
178 | <td><nobr><b><tt id='l2h-5151' xml:id='l2h-5151' class="method">find_last</tt></b>(</nobr></td> | |
179 | <td><var></var>)</td></tr></table></dt> | |
180 | <dd> | |
181 | Find the last object in the form. | |
182 | </dl> | |
183 | <DIV ALIGN="LEFT"> | |
184 | </DIV> | |
185 | <P> | |
186 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
187 | <td><nobr><b><tt id='l2h-5152' xml:id='l2h-5152' class="method">add_box</tt></b>(</nobr></td> | |
188 | <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt> | |
189 | <dd> | |
190 | Add a box object to the form. | |
191 | No extra methods. | |
192 | </dl> | |
193 | <DIV ALIGN="LEFT"> | |
194 | </DIV> | |
195 | <P> | |
196 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
197 | <td><nobr><b><tt id='l2h-5153' xml:id='l2h-5153' class="method">add_text</tt></b>(</nobr></td> | |
198 | <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt> | |
199 | <dd> | |
200 | Add a text object to the form. | |
201 | No extra methods. | |
202 | </dl> | |
203 | <DIV ALIGN="LEFT"> | |
204 | </DIV> | |
205 | <P> | |
206 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
207 | <td><nobr><b><tt id='l2h-5154' xml:id='l2h-5154' class="method">add_clock</tt></b>(</nobr></td> | |
208 | <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt> | |
209 | <dd> | |
210 | Add a clock object to the form. | |
211 | <BR> | |
212 | Method: | |
213 | <tt class="method">get_clock()</tt>. | |
214 | </dl> | |
215 | <DIV ALIGN="LEFT"> | |
216 | </DIV> | |
217 | <P> | |
218 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
219 | <td><nobr><b><tt id='l2h-5155' xml:id='l2h-5155' class="method">add_button</tt></b>(</nobr></td> | |
220 | <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt> | |
221 | <dd> | |
222 | Add a button object to the form. | |
223 | <BR> | |
224 | Methods: | |
225 | <tt class="method">get_button()</tt>, | |
226 | <tt class="method">set_button()</tt>. | |
227 | </dl> | |
228 | <DIV ALIGN="LEFT"> | |
229 | </DIV> | |
230 | <P> | |
231 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
232 | <td><nobr><b><tt id='l2h-5156' xml:id='l2h-5156' class="method">add_lightbutton</tt></b>(</nobr></td> | |
233 | <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt> | |
234 | <dd> | |
235 | Add a lightbutton object to the form. | |
236 | <BR> | |
237 | Methods: | |
238 | <tt class="method">get_button()</tt>, | |
239 | <tt class="method">set_button()</tt>. | |
240 | </dl> | |
241 | <DIV ALIGN="LEFT"> | |
242 | </DIV> | |
243 | <P> | |
244 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
245 | <td><nobr><b><tt id='l2h-5157' xml:id='l2h-5157' class="method">add_roundbutton</tt></b>(</nobr></td> | |
246 | <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt> | |
247 | <dd> | |
248 | Add a roundbutton object to the form. | |
249 | <BR> | |
250 | Methods: | |
251 | <tt class="method">get_button()</tt>, | |
252 | <tt class="method">set_button()</tt>. | |
253 | </dl> | |
254 | <DIV ALIGN="LEFT"> | |
255 | </DIV> | |
256 | <P> | |
257 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
258 | <td><nobr><b><tt id='l2h-5158' xml:id='l2h-5158' class="method">add_slider</tt></b>(</nobr></td> | |
259 | <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt> | |
260 | <dd> | |
261 | Add a slider object to the form. | |
262 | <BR> | |
263 | Methods: | |
264 | <tt class="method">set_slider_value()</tt>, | |
265 | <tt class="method">get_slider_value()</tt>, | |
266 | <tt class="method">set_slider_bounds()</tt>, | |
267 | <tt class="method">get_slider_bounds()</tt>, | |
268 | <tt class="method">set_slider_return()</tt>, | |
269 | <tt class="method">set_slider_size()</tt>, | |
270 | <tt class="method">set_slider_precision()</tt>, | |
271 | <tt class="method">set_slider_step()</tt>. | |
272 | </dl> | |
273 | <DIV ALIGN="LEFT"> | |
274 | </DIV> | |
275 | <P> | |
276 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
277 | <td><nobr><b><tt id='l2h-5159' xml:id='l2h-5159' class="method">add_valslider</tt></b>(</nobr></td> | |
278 | <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt> | |
279 | <dd> | |
280 | Add a valslider object to the form. | |
281 | <BR> | |
282 | Methods: | |
283 | <tt class="method">set_slider_value()</tt>, | |
284 | <tt class="method">get_slider_value()</tt>, | |
285 | <tt class="method">set_slider_bounds()</tt>, | |
286 | <tt class="method">get_slider_bounds()</tt>, | |
287 | <tt class="method">set_slider_return()</tt>, | |
288 | <tt class="method">set_slider_size()</tt>, | |
289 | <tt class="method">set_slider_precision()</tt>, | |
290 | <tt class="method">set_slider_step()</tt>. | |
291 | </dl> | |
292 | <DIV ALIGN="LEFT"> | |
293 | </DIV> | |
294 | <P> | |
295 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
296 | <td><nobr><b><tt id='l2h-5160' xml:id='l2h-5160' class="method">add_dial</tt></b>(</nobr></td> | |
297 | <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt> | |
298 | <dd> | |
299 | Add a dial object to the form. | |
300 | <BR> | |
301 | Methods: | |
302 | <tt class="method">set_dial_value()</tt>, | |
303 | <tt class="method">get_dial_value()</tt>, | |
304 | <tt class="method">set_dial_bounds()</tt>, | |
305 | <tt class="method">get_dial_bounds()</tt>. | |
306 | </dl> | |
307 | <DIV ALIGN="LEFT"> | |
308 | </DIV> | |
309 | <P> | |
310 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
311 | <td><nobr><b><tt id='l2h-5161' xml:id='l2h-5161' class="method">add_positioner</tt></b>(</nobr></td> | |
312 | <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt> | |
313 | <dd> | |
314 | Add a positioner object to the form. | |
315 | <BR> | |
316 | Methods: | |
317 | <tt class="method">set_positioner_xvalue()</tt>, | |
318 | <tt class="method">set_positioner_yvalue()</tt>, | |
319 | <tt class="method">set_positioner_xbounds()</tt>, | |
320 | <tt class="method">set_positioner_ybounds()</tt>, | |
321 | <tt class="method">get_positioner_xvalue()</tt>, | |
322 | <tt class="method">get_positioner_yvalue()</tt>, | |
323 | <tt class="method">get_positioner_xbounds()</tt>, | |
324 | <tt class="method">get_positioner_ybounds()</tt>. | |
325 | </dl> | |
326 | <DIV ALIGN="LEFT"> | |
327 | </DIV> | |
328 | <P> | |
329 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
330 | <td><nobr><b><tt id='l2h-5162' xml:id='l2h-5162' class="method">add_counter</tt></b>(</nobr></td> | |
331 | <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt> | |
332 | <dd> | |
333 | Add a counter object to the form. | |
334 | <BR> | |
335 | Methods: | |
336 | <tt class="method">set_counter_value()</tt>, | |
337 | <tt class="method">get_counter_value()</tt>, | |
338 | <tt class="method">set_counter_bounds()</tt>, | |
339 | <tt class="method">set_counter_step()</tt>, | |
340 | <tt class="method">set_counter_precision()</tt>, | |
341 | <tt class="method">set_counter_return()</tt>. | |
342 | </dl> | |
343 | <DIV ALIGN="LEFT"> | |
344 | </DIV> | |
345 | <P> | |
346 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
347 | <td><nobr><b><tt id='l2h-5163' xml:id='l2h-5163' class="method">add_input</tt></b>(</nobr></td> | |
348 | <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt> | |
349 | <dd> | |
350 | Add a input object to the form. | |
351 | <BR> | |
352 | Methods: | |
353 | <tt class="method">set_input()</tt>, | |
354 | <tt class="method">get_input()</tt>, | |
355 | <tt class="method">set_input_color()</tt>, | |
356 | <tt class="method">set_input_return()</tt>. | |
357 | </dl> | |
358 | <DIV ALIGN="LEFT"> | |
359 | </DIV> | |
360 | <P> | |
361 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
362 | <td><nobr><b><tt id='l2h-5164' xml:id='l2h-5164' class="method">add_menu</tt></b>(</nobr></td> | |
363 | <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt> | |
364 | <dd> | |
365 | Add a menu object to the form. | |
366 | <BR> | |
367 | Methods: | |
368 | <tt class="method">set_menu()</tt>, | |
369 | <tt class="method">get_menu()</tt>, | |
370 | <tt class="method">addto_menu()</tt>. | |
371 | </dl> | |
372 | <DIV ALIGN="LEFT"> | |
373 | </DIV> | |
374 | <P> | |
375 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
376 | <td><nobr><b><tt id='l2h-5165' xml:id='l2h-5165' class="method">add_choice</tt></b>(</nobr></td> | |
377 | <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt> | |
378 | <dd> | |
379 | Add a choice object to the form. | |
380 | <BR> | |
381 | Methods: | |
382 | <tt class="method">set_choice()</tt>, | |
383 | <tt class="method">get_choice()</tt>, | |
384 | <tt class="method">clear_choice()</tt>, | |
385 | <tt class="method">addto_choice()</tt>, | |
386 | <tt class="method">replace_choice()</tt>, | |
387 | <tt class="method">delete_choice()</tt>, | |
388 | <tt class="method">get_choice_text()</tt>, | |
389 | <tt class="method">set_choice_fontsize()</tt>, | |
390 | <tt class="method">set_choice_fontstyle()</tt>. | |
391 | </dl> | |
392 | <DIV ALIGN="LEFT"> | |
393 | </DIV> | |
394 | <P> | |
395 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
396 | <td><nobr><b><tt id='l2h-5166' xml:id='l2h-5166' class="method">add_browser</tt></b>(</nobr></td> | |
397 | <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt> | |
398 | <dd> | |
399 | Add a browser object to the form. | |
400 | <BR> | |
401 | Methods: | |
402 | <tt class="method">set_browser_topline()</tt>, | |
403 | <tt class="method">clear_browser()</tt>, | |
404 | <tt class="method">add_browser_line()</tt>, | |
405 | <tt class="method">addto_browser()</tt>, | |
406 | <tt class="method">insert_browser_line()</tt>, | |
407 | <tt class="method">delete_browser_line()</tt>, | |
408 | <tt class="method">replace_browser_line()</tt>, | |
409 | <tt class="method">get_browser_line()</tt>, | |
410 | <tt class="method">load_browser()</tt>, | |
411 | <tt class="method">get_browser_maxline()</tt>, | |
412 | <tt class="method">select_browser_line()</tt>, | |
413 | <tt class="method">deselect_browser_line()</tt>, | |
414 | <tt class="method">deselect_browser()</tt>, | |
415 | <tt class="method">isselected_browser_line()</tt>, | |
416 | <tt class="method">get_browser()</tt>, | |
417 | <tt class="method">set_browser_fontsize()</tt>, | |
418 | <tt class="method">set_browser_fontstyle()</tt>, | |
419 | <tt class="method">set_browser_specialkey()</tt>. | |
420 | </dl> | |
421 | <DIV ALIGN="LEFT"> | |
422 | </DIV> | |
423 | <P> | |
424 | <DIV ALIGN="LEFT"></DIV><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> | |
425 | <td><nobr><b><tt id='l2h-5167' xml:id='l2h-5167' class="method">add_timer</tt></b>(</nobr></td> | |
426 | <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt> | |
427 | <dd> | |
428 | Add a timer object to the form. | |
429 | <BR> | |
430 | Methods: | |
431 | <tt class="method">set_timer()</tt>, | |
432 | <tt class="method">get_timer()</tt>. | |
433 | </dl> | |
434 | <DIV ALIGN="LEFT"> | |
435 | </DIV> | |
436 | ||
437 | <P> | |
438 | Form objects have the following data attributes; see the FORMS | |
439 | documentation: | |
440 | ||
441 | <P> | |
442 | <div class="center"><table class="realtable"> | |
443 | <thead> | |
444 | <tr> | |
445 | <th class="left" >Name</th> | |
446 | <th class="left" >C Type</th> | |
447 | <th class="left" >Meaning</th> | |
448 | </tr> | |
449 | </thead> | |
450 | <tbody> | |
451 | <tr><td class="left" valign="baseline"><tt class="member">window</tt></td> | |
452 | <td class="left" >int (read-only)</td> | |
453 | <td class="left" >GL window id</td></tr> | |
454 | <tr><td class="left" valign="baseline"><tt class="member">w</tt></td> | |
455 | <td class="left" >float</td> | |
456 | <td class="left" >form width</td></tr> | |
457 | <tr><td class="left" valign="baseline"><tt class="member">h</tt></td> | |
458 | <td class="left" >float</td> | |
459 | <td class="left" >form height</td></tr> | |
460 | <tr><td class="left" valign="baseline"><tt class="member">x</tt></td> | |
461 | <td class="left" >float</td> | |
462 | <td class="left" >form x origin</td></tr> | |
463 | <tr><td class="left" valign="baseline"><tt class="member">y</tt></td> | |
464 | <td class="left" >float</td> | |
465 | <td class="left" >form y origin</td></tr> | |
466 | <tr><td class="left" valign="baseline"><tt class="member">deactivated</tt></td> | |
467 | <td class="left" >int</td> | |
468 | <td class="left" >nonzero if form is deactivated</td></tr> | |
469 | <tr><td class="left" valign="baseline"><tt class="member">visible</tt></td> | |
470 | <td class="left" >int</td> | |
471 | <td class="left" >nonzero if form is visible</td></tr> | |
472 | <tr><td class="left" valign="baseline"><tt class="member">frozen</tt></td> | |
473 | <td class="left" >int</td> | |
474 | <td class="left" >nonzero if form is frozen</td></tr> | |
475 | <tr><td class="left" valign="baseline"><tt class="member">doublebuf</tt></td> | |
476 | <td class="left" >int</td> | |
477 | <td class="left" >nonzero if double buffering on</td></tr></tbody> | |
478 | </table></div> | |
479 | ||
480 | <P> | |
481 | ||
482 | <DIV CLASS="navigation"> | |
483 | <div class='online-navigation'> | |
484 | <p></p><hr /> | |
485 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> | |
486 | <tr> | |
487 | <td class='online-navigation'><a rel="prev" title="20.4.1 Functions Defined in" | |
488 | href="node807.html"><img src='../icons/previous.png' | |
489 | border='0' height='32' alt='Previous Page' width='32' /></A></td> | |
490 | <td class='online-navigation'><a rel="parent" title="20.4 fl " | |
491 | href="module-fl.html"><img src='../icons/up.png' | |
492 | border='0' height='32' alt='Up One Level' width='32' /></A></td> | |
493 | <td class='online-navigation'><a rel="next" title="20.4.3 FORMS Objects" | |
494 | href="forms-objects.html"><img src='../icons/next.png' | |
495 | border='0' height='32' alt='Next Page' width='32' /></A></td> | |
496 | <td align="center" width="100%">Python Library Reference</td> | |
497 | <td class='online-navigation'><a rel="contents" title="Table of Contents" | |
498 | href="contents.html"><img src='../icons/contents.png' | |
499 | border='0' height='32' alt='Contents' width='32' /></A></td> | |
500 | <td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png' | |
501 | border='0' height='32' alt='Module Index' width='32' /></a></td> | |
502 | <td class='online-navigation'><a rel="index" title="Index" | |
503 | href="genindex.html"><img src='../icons/index.png' | |
504 | border='0' height='32' alt='Index' width='32' /></A></td> | |
505 | </tr></table> | |
506 | <div class='online-navigation'> | |
507 | <b class="navlabel">Previous:</b> | |
508 | <a class="sectref" rel="prev" href="node807.html">20.4.1 Functions Defined in</A> | |
509 | <b class="navlabel">Up:</b> | |
510 | <a class="sectref" rel="parent" href="module-fl.html">20.4 fl </A> | |
511 | <b class="navlabel">Next:</b> | |
512 | <a class="sectref" rel="next" href="forms-objects.html">20.4.3 FORMS Objects</A> | |
513 | </div> | |
514 | </div> | |
515 | <hr /> | |
516 | <span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span> | |
517 | </DIV> | |
518 | <!--End of Navigation Panel--> | |
519 | <ADDRESS> | |
520 | See <i><a href="about.html">About this document...</a></i> for information on suggesting changes. | |
521 | </ADDRESS> | |
522 | </BODY> | |
523 | </HTML> |