~ubuntu-branches/ubuntu/natty/pygtk/natty-proposed

« back to all changes in this revision

Viewing changes to docs/html/class-gtkradiobutton.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-06-22 16:49:42 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090622164942-19zeltp4z0u5iw72
Tags: 2.15.2-0ubuntu1
* New upstream version:
  - Rename gtk.Statusbar.remove() to gtk.Statusbar.remove_message
  - Allow pango.Context creation 
  - Make gtk.gdk.Pixbuf.add_alpha accept integers, retaining backward
    compatibility accepting also chars 
  - Protect window obj from GC in gtk.window_get_toplevels 
  - Plug huge number of memory leaks in Pango wrappers 
  - Add gtk.gdk.WINDOWING constant 
  - Wrap gdk_pixbuf_apply_embedded_orientation 
  - Modernize constructors of seven more types 
  - Don't free a string we don't own 
  - Some docs tweaking 
* debian/control.in:
  - set vcs location
* debian/patches/02_fix_get_application_info_crash.patch:
  - the change is in the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.RadioButton</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gtk-class-reference.html" title="The gtk Class Reference"><link rel="prev" href="class-gtkradioaction.html" title="gtk.RadioAction"><link rel="next" href="class-gtkradiomenuitem.html" title="gtk.RadioMenuItem"></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.RadioButton</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkradioaction.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkradiomenuitem.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkradiobutton"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.RadioButton</h2><p>gtk.RadioButton — a choice of one of multiple check buttons.</p></div><div class="refsect1" lang="en"><a name="id3612692"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.RadioButton</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkcheckbutton.html" title="gtk.CheckButton">gtk.CheckButton</a></span></span>):
2
 
<code class="constructorsynopsis">    <span class="methodname"><a class="link" href="class-gtkradiobutton.html#constructor-gtkradiobutton" title="Constructor">gtk.RadioButton</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>group</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>label</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>use_underline</code></strong></span><span class="initializer">=True</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkradiobutton.html#method-gtkradiobutton--get-group" title="gtk.RadioButton.get_group">get_group</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkradiobutton.html#method-gtkradiobutton--set-group" title="gtk.RadioButton.set_group">set_group</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>group</code></strong></span></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3612835"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
 
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.RadioButton</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gtk-class-reference.html" title="The gtk Class Reference"><link rel="prev" href="class-gtkradioaction.html" title="gtk.RadioAction"><link rel="next" href="class-gtkradiomenuitem.html" title="gtk.RadioMenuItem"></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.RadioButton</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkradioaction.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkradiomenuitem.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkradiobutton"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.RadioButton</h2><p>gtk.RadioButton — a choice of one of multiple check buttons.</p></div><div class="refsect1" lang="en"><a name="id3813498"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.RadioButton</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkcheckbutton.html" title="gtk.CheckButton">gtk.CheckButton</a></span></span>):
 
2
<code class="constructorsynopsis">    <span class="methodname"><a class="link" href="class-gtkradiobutton.html#constructor-gtkradiobutton" title="Constructor">gtk.RadioButton</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>group</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>label</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>use_underline</code></strong></span><span class="initializer">=True</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkradiobutton.html#method-gtkradiobutton--get-group" title="gtk.RadioButton.get_group">get_group</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkradiobutton.html#method-gtkradiobutton--set-group" title="gtk.RadioButton.set_group">set_group</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>group</code></strong></span></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3813641"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
3
3
  +-- <a class="link" href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
4
4
    +-- <a class="link" href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a>
5
5
      +-- <a class="link" href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a>
8
8
            +-- <a class="link" href="class-gtktogglebutton.html" title="gtk.ToggleButton">gtk.ToggleButton</a>
9
9
              +-- <a class="link" href="class-gtkcheckbutton.html" title="gtk.CheckButton">gtk.CheckButton</a>
10
10
                +-- <a class="link" href="class-gtkradiobutton.html" title="gtk.RadioButton">gtk.RadioButton</a>
11
 
</pre></div><div class="refsect1" lang="en"><a name="id3612906"></a><h2>Implemented Interfaces</h2><p>
 
11
</pre></div><div class="refsect1" lang="en"><a name="id3813712"></a><h2>Implemented Interfaces</h2><p>
12
12
                        <a class="link" href="class-gtkradiobutton.html" title="gtk.RadioButton"><code class="classname">gtk.RadioButton</code></a>
13
13
                        implements 
14
14
                        <a class="link" href="class-gtkbuildable.html" title="gtk.Buildable"><code class="classname">gtk.Buildable</code></a>
15
 
                </p></div><div class="refsect1" lang="en"><a name="properties-gtkradiobutton"></a><h2>gtk.RadioButton Properties</h2><p><a class="link" href="class-gtkobject.html#properties-gtkobject" title="gtk.Object Properties">gtk.Object Properties</a></p><p><a class="link" href="class-gtkwidget.html#properties-gtkwidget" title="gtk.Widget Properties">gtk.Widget Properties</a></p><p><a class="link" href="class-gtkcontainer.html#properties-gtkcontainer" title="gtk.Container Properties">gtk.Container Properties</a></p><p><a class="link" href="class-gtkbutton.html#properties-gtkbutton" title="gtk.Button Properties">gtk.Button Properties</a></p><p><a class="link" href="class-gtktogglebutton.html#properties-gtktogglebutton" title="gtk.ToggleButton Properties">gtk.ToggleButton Properties</a></p><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">The group that the radiobutton is in.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="style-properties-gtkradiobutton"></a><h2>gtk.RadioButton Style Properties</h2><p><a class="link" href="class-gtkwidget.html#style-properties-gtkwidget" title="gtk.Widget Style Properties">gtk.Widget Style Properties</a></p><p><a class="link" href="class-gtkbutton.html#style-properties-gtkbutton" title="gtk.Button Style Properties">gtk.Button Style Properties</a></p><p><a class="link" href="class-gtkcheckbutton.html#style-properties-gtkcheckbutton" title="gtk.CheckButton Style Properties">gtk.CheckButton Style Properties</a></p></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtkradiobutton"></a><h2>gtk.RadioButton Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p><p><a class="link" href="class-gtkobject.html#signal-prototypes-gtkobject" title="gtk.Object Signal Prototypes">gtk.Object Signal Prototypes</a></p><p><a class="link" href="class-gtkwidget.html#signal-prototypes-gtkwidget" title="gtk.Widget Signal Prototypes">gtk.Widget Signal Prototypes</a></p><p><a class="link" href="class-gtkcontainer.html#signal-prototypes-gtkcontainer" title="gtk.Container Signal Prototypes">gtk.Container Signal Prototypes</a></p><p><a class="link" href="class-gtkbutton.html#signal-prototypes-gtkbutton" title="gtk.Button Signal Prototypes">gtk.Button Signal Prototypes</a></p><p><a class="link" href="class-gtktogglebutton.html#signal-prototypes-gtktogglebutton" title="gtk.ToggleButton Signal Prototypes">gtk.ToggleButton Signal Prototypes</a></p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term">"<a class="link" href="class-gtkradiobutton.html#signal-gtkradiobutton--group-changed" title='The "group-changed" gtk.RadioButton Signal'>group-changed</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>radiobutton</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr></tbody></table></div><div class="refsect1" lang="en"><a name="id3613204"></a><h2>Description</h2><p>A single <a class="link" href="class-gtkradiobutton.html" title="gtk.RadioButton"><code class="classname">gtk.RadioButton</code></a>
 
15
                </p></div><div class="refsect1" lang="en"><a name="properties-gtkradiobutton"></a><h2>gtk.RadioButton Properties</h2><p><a class="link" href="class-gtkobject.html#properties-gtkobject" title="gtk.Object Properties">gtk.Object Properties</a></p><p><a class="link" href="class-gtkwidget.html#properties-gtkwidget" title="gtk.Widget Properties">gtk.Widget Properties</a></p><p><a class="link" href="class-gtkcontainer.html#properties-gtkcontainer" title="gtk.Container Properties">gtk.Container Properties</a></p><p><a class="link" href="class-gtkbutton.html#properties-gtkbutton" title="gtk.Button Properties">gtk.Button Properties</a></p><p><a class="link" href="class-gtktogglebutton.html#properties-gtktogglebutton" title="gtk.ToggleButton Properties">gtk.ToggleButton Properties</a></p><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">The group that the radiobutton is in.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="style-properties-gtkradiobutton"></a><h2>gtk.RadioButton Style Properties</h2><p><a class="link" href="class-gtkwidget.html#style-properties-gtkwidget" title="gtk.Widget Style Properties">gtk.Widget Style Properties</a></p><p><a class="link" href="class-gtkbutton.html#style-properties-gtkbutton" title="gtk.Button Style Properties">gtk.Button Style Properties</a></p><p><a class="link" href="class-gtkcheckbutton.html#style-properties-gtkcheckbutton" title="gtk.CheckButton Style Properties">gtk.CheckButton Style Properties</a></p></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtkradiobutton"></a><h2>gtk.RadioButton Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p><p><a class="link" href="class-gtkobject.html#signal-prototypes-gtkobject" title="gtk.Object Signal Prototypes">gtk.Object Signal Prototypes</a></p><p><a class="link" href="class-gtkwidget.html#signal-prototypes-gtkwidget" title="gtk.Widget Signal Prototypes">gtk.Widget Signal Prototypes</a></p><p><a class="link" href="class-gtkcontainer.html#signal-prototypes-gtkcontainer" title="gtk.Container Signal Prototypes">gtk.Container Signal Prototypes</a></p><p><a class="link" href="class-gtkbutton.html#signal-prototypes-gtkbutton" title="gtk.Button Signal Prototypes">gtk.Button Signal Prototypes</a></p><p><a class="link" href="class-gtktogglebutton.html#signal-prototypes-gtktogglebutton" title="gtk.ToggleButton Signal Prototypes">gtk.ToggleButton Signal Prototypes</a></p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term">"<a class="link" href="class-gtkradiobutton.html#signal-gtkradiobutton--group-changed" title='The "group-changed" gtk.RadioButton Signal'>group-changed</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>radiobutton</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr></tbody></table></div><div class="refsect1" lang="en"><a name="id3814009"></a><h2>Description</h2><p>A single <a class="link" href="class-gtkradiobutton.html" title="gtk.RadioButton"><code class="classname">gtk.RadioButton</code></a>
16
16
performs the same basic function as a <a class="link" href="class-gtkcheckbutton.html" title="gtk.CheckButton"><code class="classname">gtk.CheckButton</code></a>, 
17
17
as it's position in the object hierarchy reflects. It is only when multiple
18
18
radio buttons are grouped together that they become a different user
49
49
becomes the first member of a new radiobutton group.</p><p>In PyGTK 2.4 and above the <em class="parameter"><code>use_underline</code></em>
50
50
parameter is available and defaults to <code class="literal">True</code>. If
51
51
<em class="parameter"><code>use_underline</code></em> is set to <code class="literal">False</code> the
52
 
label text will not be parsed for mnemonic characters.</p></div><div class="refsect1" lang="en"><a name="id3613614"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkradiobutton--get-group"></a><h3>gtk.RadioButton.get_group</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_group</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the list of radiobuttons in the same group that
 
52
label text will not be parsed for mnemonic characters.</p></div><div class="refsect1" lang="en"><a name="id3814419"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkradiobutton--get-group"></a><h3>gtk.RadioButton.get_group</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_group</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the list of radiobuttons in the same group that
53
53
contains the radiobutton or <code class="literal">None</code></td></tr></tbody></table><p>The <code class="methodname">get_group</code>() method returns the list
54
54
of radiobuttons that are in the same group as the radiobutton or
55
55
<code class="literal">None</code> if the radiobutton is not in a group.</p></div><div class="refsect2" lang="en"><a name="method-gtkradiobutton--set-group"></a><h3>gtk.RadioButton.set_group</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_group</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>group</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>group</code></strong> :</span></p></td><td>a <a class="link" href="class-gtkradiobutton.html" title="gtk.RadioButton"><code class="classname">gtk.RadioButton</code></a>
58
58
radiobutton to the group of the radiobutton specified by
59
59
<em class="parameter"><code>group</code></em>.</p><p>In PyGTK 2.6.2 and above, if <em class="parameter"><code>group</code></em> is
60
60
<code class="literal">None</code> the radiobutton is removed from its current
61
 
group.</p></div></div><div class="refsect1" lang="en"><a name="id3613799"></a><h2>Signals</h2><div class="refsect2" lang="en"><a name="signal-gtkradiobutton--group-changed"></a><h3>The "group-changed" gtk.RadioButton Signal</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>radiobutton</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>radiobutton</code></em> :</span></p></td><td>the radiobutton that received the
 
61
group.</p></div></div><div class="refsect1" lang="en"><a name="id3814605"></a><h2>Signals</h2><div class="refsect2" lang="en"><a name="signal-gtkradiobutton--group-changed"></a><h3>The "group-changed" gtk.RadioButton Signal</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>radiobutton</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>radiobutton</code></em> :</span></p></td><td>the radiobutton that received the
62
62
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
63
63
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
64
64
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if