📄 form-objects.html
字号:
<DIV ALIGN="LEFT">
</DIV>
<P>
<DIV ALIGN="LEFT"></DIV><dl><dt><b><a name='l2h-3200'><tt class='method'>add_valslider</tt></a></b> (<var>type, x, y, w, h, name</var>)
<dd>
Add a valslider object to the form.
<BR>
Methods:
<tt class="method">set_slider_value()</tt>,
<tt class="method">get_slider_value()</tt>,
<tt class="method">set_slider_bounds()</tt>,
<tt class="method">get_slider_bounds()</tt>,
<tt class="method">set_slider_return()</tt>,
<tt class="method">set_slider_size()</tt>,
<tt class="method">set_slider_precision()</tt>,
<tt class="method">set_slider_step()</tt>.
</dl>
<DIV ALIGN="LEFT">
</DIV>
<P>
<DIV ALIGN="LEFT"></DIV><dl><dt><b><a name='l2h-3201'><tt class='method'>add_dial</tt></a></b> (<var>type, x, y, w, h, name</var>)
<dd>
Add a dial object to the form.
<BR>
Methods:
<tt class="method">set_dial_value()</tt>,
<tt class="method">get_dial_value()</tt>,
<tt class="method">set_dial_bounds()</tt>,
<tt class="method">get_dial_bounds()</tt>.
</dl>
<DIV ALIGN="LEFT">
</DIV>
<P>
<DIV ALIGN="LEFT"></DIV><dl><dt><b><a name='l2h-3202'><tt class='method'>add_positioner</tt></a></b> (<var>type, x, y, w, h, name</var>)
<dd>
Add a positioner object to the form.
<BR>
Methods:
<tt class="method">set_positioner_xvalue()</tt>,
<tt class="method">set_positioner_yvalue()</tt>,
<tt class="method">set_positioner_xbounds()</tt>,
<tt class="method">set_positioner_ybounds()</tt>,
<tt class="method">get_positioner_xvalue()</tt>,
<tt class="method">get_positioner_yvalue()</tt>,
<tt class="method">get_positioner_xbounds()</tt>,
<tt class="method">get_positioner_ybounds()</tt>.
</dl>
<DIV ALIGN="LEFT">
</DIV>
<P>
<DIV ALIGN="LEFT"></DIV><dl><dt><b><a name='l2h-3203'><tt class='method'>add_counter</tt></a></b> (<var>type, x, y, w, h, name</var>)
<dd>
Add a counter object to the form.
<BR>
Methods:
<tt class="method">set_counter_value()</tt>,
<tt class="method">get_counter_value()</tt>,
<tt class="method">set_counter_bounds()</tt>,
<tt class="method">set_counter_step()</tt>,
<tt class="method">set_counter_precision()</tt>,
<tt class="method">set_counter_return()</tt>.
</dl>
<DIV ALIGN="LEFT">
</DIV>
<P>
<DIV ALIGN="LEFT"></DIV><dl><dt><b><a name='l2h-3204'><tt class='method'>add_input</tt></a></b> (<var>type, x, y, w, h, name</var>)
<dd>
Add a input object to the form.
<BR>
Methods:
<tt class="method">set_input()</tt>,
<tt class="method">get_input()</tt>,
<tt class="method">set_input_color()</tt>,
<tt class="method">set_input_return()</tt>.
</dl>
<DIV ALIGN="LEFT">
</DIV>
<P>
<DIV ALIGN="LEFT"></DIV><dl><dt><b><a name='l2h-3205'><tt class='method'>add_menu</tt></a></b> (<var>type, x, y, w, h, name</var>)
<dd>
Add a menu object to the form.
<BR>
Methods:
<tt class="method">set_menu()</tt>,
<tt class="method">get_menu()</tt>,
<tt class="method">addto_menu()</tt>.
</dl>
<DIV ALIGN="LEFT">
</DIV>
<P>
<DIV ALIGN="LEFT"></DIV><dl><dt><b><a name='l2h-3206'><tt class='method'>add_choice</tt></a></b> (<var>type, x, y, w, h, name</var>)
<dd>
Add a choice object to the form.
<BR>
Methods:
<tt class="method">set_choice()</tt>,
<tt class="method">get_choice()</tt>,
<tt class="method">clear_choice()</tt>,
<tt class="method">addto_choice()</tt>,
<tt class="method">replace_choice()</tt>,
<tt class="method">delete_choice()</tt>,
<tt class="method">get_choice_text()</tt>,
<tt class="method">set_choice_fontsize()</tt>,
<tt class="method">set_choice_fontstyle()</tt>.
</dl>
<DIV ALIGN="LEFT">
</DIV>
<P>
<DIV ALIGN="LEFT"></DIV><dl><dt><b><a name='l2h-3207'><tt class='method'>add_browser</tt></a></b> (<var>type, x, y, w, h, name</var>)
<dd>
Add a browser object to the form.
<BR>
Methods:
<tt class="method">set_browser_topline()</tt>,
<tt class="method">clear_browser()</tt>,
<tt class="method">add_browser_line()</tt>,
<tt class="method">addto_browser()</tt>,
<tt class="method">insert_browser_line()</tt>,
<tt class="method">delete_browser_line()</tt>,
<tt class="method">replace_browser_line()</tt>,
<tt class="method">get_browser_line()</tt>,
<tt class="method">load_browser()</tt>,
<tt class="method">get_browser_maxline()</tt>,
<tt class="method">select_browser_line()</tt>,
<tt class="method">deselect_browser_line()</tt>,
<tt class="method">deselect_browser()</tt>,
<tt class="method">isselected_browser_line()</tt>,
<tt class="method">get_browser()</tt>,
<tt class="method">set_browser_fontsize()</tt>,
<tt class="method">set_browser_fontstyle()</tt>,
<tt class="method">set_browser_specialkey()</tt>.
</dl>
<DIV ALIGN="LEFT">
</DIV>
<P>
<DIV ALIGN="LEFT"></DIV><dl><dt><b><a name='l2h-3208'><tt class='method'>add_timer</tt></a></b> (<var>type, x, y, w, h, name</var>)
<dd>
Add a timer object to the form.
<BR>
Methods:
<tt class="method">set_timer()</tt>,
<tt class="method">get_timer()</tt>.
</dl>
<DIV ALIGN="LEFT">
</DIV>
<P>
Form objects have the following data attributes; see the FORMS
documentation:
<P>
<table border align="center" style="border-collapse: collapse">
<thead>
<tr>
<th align="left"><b>Name</b> </th>
<th align="left"><b>C Type</b> </th>
<th align="left"><b>Meaning</b> </th>
</thead>
<tbody valign='baseline'>
<tr><td align="left" valign="baseline"><tt class="member">window</tt></td>
<td align="left">int (read-only)</td>
<td align="left">GL window id</td>
<tr><td align="left" valign="baseline"><tt class="member">w</tt></td>
<td align="left">float</td>
<td align="left">form width</td>
<tr><td align="left" valign="baseline"><tt class="member">h</tt></td>
<td align="left">float</td>
<td align="left">form height</td>
<tr><td align="left" valign="baseline"><tt class="member">x</tt></td>
<td align="left">float</td>
<td align="left">form x origin</td>
<tr><td align="left" valign="baseline"><tt class="member">y</tt></td>
<td align="left">float</td>
<td align="left">form y origin</td>
<tr><td align="left" valign="baseline"><tt class="member">deactivated</tt></td>
<td align="left">int</td>
<td align="left">nonzero if form is deactivated</td>
<tr><td align="left" valign="baseline"><tt class="member">visible</tt></td>
<td align="left">int</td>
<td align="left">nonzero if form is visible</td>
<tr><td align="left" valign="baseline"><tt class="member">frozen</tt></td>
<td align="left">int</td>
<td align="left">nonzero if form is frozen</td>
<tr><td align="left" valign="baseline"><tt class="member">doublebuf</tt></td>
<td align="left">int</td>
<td align="left">nonzero if double buffering on</td></tbody>
</table>
<P>
<DIV CLASS="navigation"><p><hr><table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A href="FL_Functions.html" tppabs="http://www.python.org/doc/current/lib/FL_Functions.html"><img src="previous.gif" tppabs="http://www.python.org/doc/current/icons/previous.gif" border="0" height="32"
alt="Previous Page" width="32"></A></td>
<td><A href="module-fl.html" tppabs="http://www.python.org/doc/current/lib/module-fl.html"><img src="up.gif" tppabs="http://www.python.org/doc/current/icons/up.gif" border="0" height="32"
alt="Up One Level" width="32"></A></td>
<td><A href="forms-objects.html" tppabs="http://www.python.org/doc/current/lib/forms-objects.html"><img src="next.gif" tppabs="http://www.python.org/doc/current/icons/next.gif" border="0" height="32"
alt="Next Page" width="32"></A></td>
<td align="center" width="100%">Python Library Reference</td>
<td><A href="contents.html" tppabs="http://www.python.org/doc/current/lib/contents.html"><img src="contents.gif" tppabs="http://www.python.org/doc/current/icons/contents.gif" border="0" height="32"
alt="Contents" width="32"></A></td>
<td><a href="modindex.html" tppabs="http://www.python.org/doc/current/lib/modindex.html" title="Module Index"><img src="modules.gif" tppabs="http://www.python.org/doc/current/icons/modules.gif" border="0" height="32"
alt="Module Index" width="32"></a></td>
<td><A href="genindex.html" tppabs="http://www.python.org/doc/current/lib/genindex.html"><img src="index.gif" tppabs="http://www.python.org/doc/current/icons/index.gif" border="0" height="32"
alt="Index" width="32"></A></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" href="FL_Functions.html" tppabs="http://www.python.org/doc/current/lib/FL_Functions.html">18.4.1 Functions Defined in</A>
<b class="navlabel">Up:</b> <a class="sectref" href="module-fl.html" tppabs="http://www.python.org/doc/current/lib/module-fl.html">18.4 fl </A>
<b class="navlabel">Next:</b> <a class="sectref" href="forms-objects.html" tppabs="http://www.python.org/doc/current/lib/forms-objects.html">18.4.3 FORMS Objects</A>
</DIV>
<!--End of Navigation Panel-->
<ADDRESS>
<hr>See <i><a href="about.html" tppabs="http://www.python.org/doc/current/lib/about.html">About this document...</a></i> for information on suggesting changes.
</ADDRESS>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -