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

« back to all changes in this revision

Viewing changes to docs/html/class-gtkradiomenuitem.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.RadioMenuItem</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-gtkradiobutton.html" title="gtk.RadioButton"><link rel="next" href="class-gtkradiotoolbutton.html" title="gtk.RadioToolButton"></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.RadioMenuItem</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkradiobutton.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkradiotoolbutton.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkradiomenuitem"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.RadioMenuItem</h2><p>gtk.RadioMenuItem — a choice from multiple check menu items.</p></div><div class="refsect1" lang="en"><a name="id3613975"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.RadioMenuItem</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkcheckmenuitem.html" title="gtk.CheckMenuItem">gtk.CheckMenuItem</a></span></span>):
2
 
<code class="constructorsynopsis">    <span class="methodname"><a class="link" href="class-gtkradiomenuitem.html#constructor-gtkradiomenuitem" title="Constructor">gtk.RadioMenuItem</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-gtkradiomenuitem.html#method-gtkradiomenuitem--get-group" title="gtk.RadioMenuItem.get_group">get_group</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkradiomenuitem.html#method-gtkradiomenuitem--set-group" title="gtk.RadioMenuItem.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="id3614118"></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.RadioMenuItem</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-gtkradiobutton.html" title="gtk.RadioButton"><link rel="next" href="class-gtkradiotoolbutton.html" title="gtk.RadioToolButton"></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.RadioMenuItem</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkradiobutton.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkradiotoolbutton.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkradiomenuitem"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.RadioMenuItem</h2><p>gtk.RadioMenuItem — a choice from multiple check menu items.</p></div><div class="refsect1" lang="en"><a name="id3814780"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.RadioMenuItem</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkcheckmenuitem.html" title="gtk.CheckMenuItem">gtk.CheckMenuItem</a></span></span>):
 
2
<code class="constructorsynopsis">    <span class="methodname"><a class="link" href="class-gtkradiomenuitem.html#constructor-gtkradiomenuitem" title="Constructor">gtk.RadioMenuItem</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-gtkradiomenuitem.html#method-gtkradiomenuitem--get-group" title="gtk.RadioMenuItem.get_group">get_group</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkradiomenuitem.html#method-gtkradiomenuitem--set-group" title="gtk.RadioMenuItem.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="id3814923"></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-gtkmenuitem.html" title="gtk.MenuItem">gtk.MenuItem</a>
9
9
              +-- <a class="link" href="class-gtkcheckmenuitem.html" title="gtk.CheckMenuItem">gtk.CheckMenuItem</a>
10
10
                +-- <a class="link" href="class-gtkradiomenuitem.html" title="gtk.RadioMenuItem">gtk.RadioMenuItem</a>
11
 
</pre></div><div class="refsect1" lang="en"><a name="id3614188"></a><h2>Implemented Interfaces</h2><p>
 
11
</pre></div><div class="refsect1" lang="en"><a name="id3814994"></a><h2>Implemented Interfaces</h2><p>
12
12
                        <a class="link" href="class-gtkradiomenuitem.html" title="gtk.RadioMenuItem"><code class="classname">gtk.RadioMenuItem</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
15
                </p></div><div class="refsect1" lang="en"><a name="properties-gtkradiomenuitem"></a><h2>gtk.RadioMenuItem 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-gtkcheckmenuitem.html#properties-gtkcheckmenuitem" title="gtk.CheckMenuItem Properties">gtk.CheckMenuItem 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 radio menu item whose group this widget belongs to.
16
 
          This property is available in GTK+ 2.8 and above.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="style-properties-gtkradiomenuitem"></a><h2>gtk.RadioMenuItem 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-gtkmenuitem.html#style-properties-gtkmenuitem" title="gtk.MenuItem Style Properties">gtk.MenuItem Style Properties</a></p><p><a class="link" href="class-gtkcheckmenuitem.html#style-properties-gtkcheckmenuitem" title="gtk.CheckMenuItem Style Properties">gtk.CheckMenuItem Style Properties</a></p></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtkradiomenuitem"></a><h2>gtk.RadioMenuItem 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-gtkitem.html#signal-prototypes-gtkitem" title="gtk.Item Signal Prototypes">gtk.Item Signal Prototypes</a></p><p><a class="link" href="class-gtkmenuitem.html#signal-prototypes-gtkmenuitem" title="gtk.MenuItem Signal Prototypes">gtk.MenuItem Signal Prototypes</a></p><p><a class="link" href="class-gtkcheckmenuitem.html#signal-prototypes-gtkcheckmenuitem" title="gtk.CheckMenuItem Signal Prototypes">gtk.CheckMenuItem 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-gtkradiomenuitem.html#signal-gtkradiomenuitem--group-changed" title='The "group-changed" gtk.RadioMenuItem 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>radiomenuitem</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="id3614488"></a><h2>Description</h2><p>A <a class="link" href="class-gtkradiomenuitem.html" title="gtk.RadioMenuItem"><code class="classname">gtk.RadioMenuItem</code></a> 
 
16
          This property is available in GTK+ 2.8 and above.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="style-properties-gtkradiomenuitem"></a><h2>gtk.RadioMenuItem 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-gtkmenuitem.html#style-properties-gtkmenuitem" title="gtk.MenuItem Style Properties">gtk.MenuItem Style Properties</a></p><p><a class="link" href="class-gtkcheckmenuitem.html#style-properties-gtkcheckmenuitem" title="gtk.CheckMenuItem Style Properties">gtk.CheckMenuItem Style Properties</a></p></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtkradiomenuitem"></a><h2>gtk.RadioMenuItem 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-gtkitem.html#signal-prototypes-gtkitem" title="gtk.Item Signal Prototypes">gtk.Item Signal Prototypes</a></p><p><a class="link" href="class-gtkmenuitem.html#signal-prototypes-gtkmenuitem" title="gtk.MenuItem Signal Prototypes">gtk.MenuItem Signal Prototypes</a></p><p><a class="link" href="class-gtkcheckmenuitem.html#signal-prototypes-gtkcheckmenuitem" title="gtk.CheckMenuItem Signal Prototypes">gtk.CheckMenuItem 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-gtkradiomenuitem.html#signal-gtkradiomenuitem--group-changed" title='The "group-changed" gtk.RadioMenuItem 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>radiomenuitem</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="id3815294"></a><h2>Description</h2><p>A <a class="link" href="class-gtkradiomenuitem.html" title="gtk.RadioMenuItem"><code class="classname">gtk.RadioMenuItem</code></a> 
17
17
widget is a check menu item that belongs to a group. Only one of the radio
18
18
menu items in a group can be selected.</p></div><div class="refsect1" lang="en"><a name="constructor-gtkradiomenuitem"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">gtk.RadioMenuItem</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></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-gtkradiomenuitem.html" title="gtk.RadioMenuItem"><code class="classname">gtk.RadioMenuItem</code></a> 
19
19
whose group the new radiomenuitem should be added to, or
34
34
the radiomenuitem is created without a label.</p><p>In PyGTK 2.4 and above the <em class="parameter"><code>use_underline</code></em>
35
35
parameter is available and defaults to <code class="literal">True</code>. If
36
36
<em class="parameter"><code>use_underline</code></em> is set to <code class="literal">False</code> the
37
 
label text will not be parsed for mnemonic characters.</p></div><div class="refsect1" lang="en"><a name="id3614796"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkradiomenuitem--get-group"></a><h3>gtk.RadioMenuItem.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><p>the list of radiomenuitems in the same group
 
37
label text will not be parsed for mnemonic characters.</p></div><div class="refsect1" lang="en"><a name="id3815601"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkradiomenuitem--get-group"></a><h3>gtk.RadioMenuItem.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><p>the list of radiomenuitems in the same group
38
38
that contains the radiomenuitem</p> or
39
39
            <code class="literal"> None</code></td></tr></tbody></table><p>The <code class="methodname">get_group</code>() method returns the list
40
40
of <a class="link" href="class-gtkradiomenuitem.html" title="gtk.RadioMenuItem"><code class="classname">gtk.RadioMenuItem</code></a>s
45
45
radiomenuitem to the group of the <a class="link" href="class-gtkradiomenuitem.html" title="gtk.RadioMenuItem"><code class="classname">gtk.RadioMenuItem</code></a> 
46
46
specified by <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
47
47
<code class="literal">None</code> the radiomenuitem will be removed from its current
48
 
group.</p></div></div><div class="refsect1" lang="en"><a name="id3614999"></a><h2>Signals</h2><div class="refsect2" lang="en"><a name="signal-gtkradiomenuitem--group-changed"></a><h3>The "group-changed" gtk.RadioMenuItem Signal</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>radiomenuitem</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>radiomenuitem</code></em> :</span></p></td><td>the radiomenuitem that received the
 
48
group.</p></div></div><div class="refsect1" lang="en"><a name="id3815805"></a><h2>Signals</h2><div class="refsect2" lang="en"><a name="signal-gtkradiomenuitem--group-changed"></a><h3>The "group-changed" gtk.RadioMenuItem Signal</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>radiomenuitem</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>radiomenuitem</code></em> :</span></p></td><td>the radiomenuitem that received the
49
49
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
50
50
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
51
51
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if