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
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gtk.RadioToolButton</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-gtkradiomenuitem.html" title="gtk.RadioMenuItem"><link rel="next" href="class-gtkrange.html" title="gtk.Range"></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.RadioToolButton</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkradiomenuitem.html">Prev</a></td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"><a accesskey="n" href="class-gtkrange.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkradiotoolbutton"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2>gtk.RadioToolButton</h2><p>gtk.RadioToolButton — a toolbar item that
contains a radio button (new in PyGTK 2.4)</p></div><div class="refsect1" lang="en"><a name="id3487615"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.RadioToolButton</span></span>(<span class="ooclass"><span class="classname"><a href="class-gtktoggletoolbutton.html" title="gtk.ToggleToolButton">gtk.ToggleToolButton</a></span></span>):
<code class="constructorsynopsis"> <span class="methodname"><a href="class-gtkradiotoolbutton.html#constructor-gtkradiotoolbutton" title="Constructor">gtk.RadioToolButton</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>group</tt></b></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>stock_id</tt></b></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a href="class-gtkradiotoolbutton.html#method-gtkradiotoolbutton--set-group" title="gtk.RadioToolButton.set_group">set_group</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>group</tt></b></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a href="class-gtkradiotoolbutton.html#method-gtkradiotoolbutton--get-group" title="gtk.RadioToolButton.get_group">get_group</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3487710"></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-gtktoolitem.html" title="gtk.ToolItem">gtk.ToolItem</a>
+-- <a href="class-gtktoolbutton.html" title="gtk.ToolButton">gtk.ToolButton</a>
+-- <a href="class-gtktoggletoolbutton.html" title="gtk.ToggleToolButton">gtk.ToggleToolButton</a>
+-- <a href="class-gtkradiotoolbutton.html" title="gtk.RadioToolButton">gtk.RadioToolButton</a>
</pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3487779"></a><h2>Properties</h2><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This property is available in GTK+ 2.4 and above.</p></div><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">"group"</td><td valign="top">Write</td><td valign="top">Sets a new group for a radio tool button.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="id3487857"></a><h2>Description</h2><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This widget is available in PyGTK 2.4 and above.</p></div><p>A <a href="class-gtkradiotoolbutton.html" title="gtk.RadioToolButton"><tt class="classname">gtk.RadioToolButton</tt></a>
is a <a href="class-gtktoolitem.html" title="gtk.ToolItem"><tt class="classname">gtk.ToolItem</tt></a> that
contains a radio button, that is, a button that is part of a group of toggle
buttons where only one button can be active at a time. Use the <a href="class-gtkradiotoolbutton.html#constructor-gtkradiotoolbutton" title="Constructor">gtk.RadioToolButton</a>()
constructor to create a new <a href="class-gtkradiotoolbutton.html" title="gtk.RadioToolButton"><tt class="classname">gtk.RadioToolButton</tt></a>.</p></div><div class="refsect1" lang="en"><a name="constructor-gtkradiotoolbutton"></a><h2>Constructor</h2><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="constructorsynopsis"> <span class="methodname">gtk.RadioToolButton</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>group</tt></b></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>stock_id</tt></b></span><span class="initializer">=None</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>group</tt></b>:</span></td><td>an existing <a href="class-gtkradiotoolbutton.html" title="gtk.RadioToolButton"><tt class="classname">gtk.RadioToolButton</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>stock_id</tt></b>:</span></td><td> the name of a stock item</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a new <a href="class-gtkradiotoolbutton.html" title="gtk.RadioToolButton"><tt class="classname">gtk.RadioToolButton</tt></a></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This constructor is available in PyGTK 2.4 and above.</p></div><p>Creates a new <a href="class-gtkradiotoolbutton.html" title="gtk.RadioToolButton"><tt class="classname">gtk.RadioToolButton</tt></a>,
adding it to the same group as the <a href="class-gtkradiotoolbutton.html" title="gtk.RadioToolButton"><tt class="classname">gtk.RadioToolButton</tt></a>
specified by <i class="parameter"><tt>group</tt></i> if it is not
<tt class="literal">None</tt>. The new <a href="class-gtkradiotoolbutton.html" title="gtk.RadioToolButton"><tt class="classname">gtk.RadioToolButton</tt></a>
will contain an icon and label from the stock item specified by
<i class="parameter"><tt>stock_id</tt></i> if it is not <tt class="literal">None</tt>.</p></div><div class="refsect1" lang="en"><a name="id3488067"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkradiotoolbutton--set-group"></a><h3>gtk.RadioToolButton.set_group</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_group</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>group</tt></b></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>group</tt></b>:</span></td><td>an existing <a href="class-gtkradiotoolbutton.html" title="gtk.RadioToolButton"><tt class="classname">gtk.RadioToolButton</tt></a></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <tt class="methodname">set_group</tt>() method adds the radio
tool button to the same group as the <a href="class-gtkradiotoolbutton.html" title="gtk.RadioToolButton"><tt class="classname">gtk.RadioToolButton</tt></a>
specified by <i class="parameter"><tt>group</tt></i></p></div><div class="refsect2" lang="en"><a name="method-gtkradiotoolbutton--get-group"></a><h3>gtk.RadioToolButton.get_group</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_group</span>(<span class="methodparam"></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"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a list containing the <a href="class-gtkradiotoolbutton.html" title="gtk.RadioToolButton"><tt class="classname">gtk.RadioToolButton</tt></a>s
in the group</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <tt class="methodname">get_group</tt>() method returns a list
containing the <a href="class-gtkradiobutton.html" title="gtk.RadioButton"><tt class="classname">gtk.RadioButton</tt></a>
objects that are in the same group as the radio tool button.</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-gtkradiomenuitem.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-gtkrange.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.RadioMenuItem</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">gtk.Range</td></tr></table></div></body></html>
|