1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gtk.CheckButton</title><meta name="generator" content="DocBook XSL Stylesheets V1.65.1"><link rel="home" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gtk-class-reference.html" title="The gtk Class Reference"><link rel="previous" href="class-gtkcellview.html" title="gtk.CellView"><link rel="next" href="class-gtkcheckmenuitem.html" title="gtk.CheckMenuItem"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">gtk.CheckButton</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkcellview.html">Prev</a></td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"><a accesskey="n" href="class-gtkcheckmenuitem.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkcheckbutton"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2>gtk.CheckButton</h2><p>gtk.CheckButton — a toggle button widget styled as a checkbox and label
</p></div><div class="refsect1" lang="en"><a name="id3336689"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.CheckButton</span></span>(<span class="ooclass"><span class="classname"><a href="class-gtktogglebutton.html" title="gtk.ToggleButton">gtk.ToggleButton</a></span></span>):
<code class="constructorsynopsis"> <span class="methodname"><a href="class-gtkcheckbutton.html#constructor-gtkcheckbutton" title="Constructor">gtk.CheckButton</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>label</tt></b></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>use_underline</tt></b></span><span class="initializer">=TRUE</span></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3261962"></a><h2>Ancestry</h2><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="synopsis">
+-- <a href="class-gobject.html" title="gobject.GObject">gobject.GObject</a>
+-- <a href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
+-- <a href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a>
+-- <a href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a>
+-- <a href="class-gtkbin.html" title="gtk.Bin">gtk.Bin</a>
+-- <a href="class-gtkbutton.html" title="gtk.Button">gtk.Button</a>
+-- <a href="class-gtktogglebutton.html" title="gtk.ToggleButton">gtk.ToggleButton</a>
+-- <a href="class-gtkcheckbutton.html" title="gtk.CheckButton">gtk.CheckButton</a>
</pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3290128"></a><h2>Style Properties</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table width="100%" border="0"><colgroup><col><col><col></colgroup><tbody><tr valign="top"><td valign="top">"indicator-spacing"</td><td valign="top">Read/Write</td><td valign="top">The spacing around the check or radio indicator</td></tr><tr valign="top"><td valign="top">"indicator-size"</td><td valign="top">Read/Write</td><td valign="top">The size of the check or radio indicator</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="id3341006"></a><h2>Description</h2><p>A <a href="class-gtkcheckbutton.html" title="gtk.CheckButton"><tt class="classname">gtk.CheckButton</tt></a>
places a discrete <a href="class-gtktogglebutton.html" title="gtk.ToggleButton"><tt class="classname">gtk.ToggleButton</tt></a>
next to a widget, (usually a <a href="class-gtklabel.html" title="gtk.Label"><tt class="classname">gtk.Label</tt></a>). See the
section on <a href="class-gtktogglebutton.html" title="gtk.ToggleButton"><tt class="classname">gtk.ToggleButton</tt></a>
widgets for more information about toggle and check buttons. The signal
('toggled') is also inherited from <a href="class-gtktogglebutton.html" title="gtk.ToggleButton"><tt class="classname">gtk.ToggleButton</tt></a>.</p></div><div class="refsect1" lang="en"><a name="constructor-gtkcheckbutton"></a><h2>Constructor</h2><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="constructorsynopsis"> <span class="methodname">gtk.CheckButton</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>label</tt></b></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>use_underline</tt></b></span><span class="initializer">=TRUE</span></span>)</code>
</pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>label</tt></b>:</span></td><td>a string to be used as the label text or
None</td></tr><tr><td><span class="term"><b class="parameter"><tt>use_underline</tt></b>:</span></td><td>if <tt class="literal">TRUE</tt>, an underscore in the
label text indicates the next character should be underlined and
used for the mnemonic accelerator key if it is the first character
so marked. Available in PyGTK 2.4 and above.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a new checkbutton object</td></tr></tbody></table><p>Creates a new checkbutton with a text label specified by
<i class="parameter"><tt>label</tt></i>. If <i class="parameter"><tt>label</tt></i> is
<tt class="literal">None</tt> or not specified then no label is created. If
<i class="parameter"><tt>label</tt></i> contains underscore characters then the
character following the underscore will be underlined and the character
following the first underscore will be used as the mnemonic keyboard
accelerator.</p><p>In PyGTK 2.4 and above the <i class="parameter"><tt>use_underline</tt></i>
parameter is available and defaults to <tt class="literal">TRUE</tt>. If
<i class="parameter"><tt>use_underline</tt></i> is set to <tt class="literal">FALSE</tt> the
label text will not be parsed for mnemonic characters.</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-gtkcellview.html">Prev</a></td><td width="20%" align="center"><a accesskey="u" href="gtk-class-reference.html">Up</a></td><td width="40%" align="right"><a accesskey="n" href="class-gtkcheckmenuitem.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.CellView</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">gtk.CheckMenuItem</td></tr></table></div></body></html>
|