40 lines
1.6 KiB
HTML
40 lines
1.6 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html><head><title>PyGUI - class Control</title>
|
|
|
|
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></head>
|
|
<body>
|
|
<h1>class <tt>Control(<a href="Component.html">Component</a>)</tt></h1>
|
|
Class Control is an abstract base class for controls. It provides a set of
|
|
properties that most controls have in common.<br>
|
|
<br>
|
|
Note that some platforms may not support changing all of these properties.<br>
|
|
<br>
|
|
You should not derive directly from Control. Custom components should be based on <a href="View.html">View</a> or <a href="Frame.html">Frame</a>.<br>
|
|
<h2>Properties</h2>
|
|
<blockquote>
|
|
<dl>
|
|
<dt style="font-family: monospace;">value</dt><dd>The value of the control. Its type depends on the kind of control.</dd><dt><tt>enabled</tt></dt>
|
|
<dd>True if the control can be manipulated by the user. Disabled controls
|
|
are typically displayed in a different way, and do not respond to user actions.</dd>
|
|
<dd><br>
|
|
</dd>
|
|
<dt><tt>font</tt></dt>
|
|
<dd>Font in which to display the control's title or text, if it has any.</dd>
|
|
<dd><br>
|
|
</dd>
|
|
<dt><tt>color</tt></dt>
|
|
<dd>Color in which to display the control's title or text, if it has
|
|
any.</dd>
|
|
<dd><br>
|
|
</dd>
|
|
<dt><tt>just</tt></dt>
|
|
<dd>Justification of the control's title or text, if it has any. One
|
|
of '<tt>left</tt>', '<tt>center</tt>' or '<tt>right</tt>'.</dd>
|
|
<dd><br>
|
|
</dd>
|
|
<dt><tt>lines</tt></dt>
|
|
<dd>The height of the control measured in lines of the current font.</dd>
|
|
</dl>
|
|
</blockquote>
|
|
<br>
|
|
</body></html> |