/usr/share/gtk-doc/html/pygtk/class-gtktoolitemgroup.html is in python-gtk2-doc 2.24.0-4ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.ToolItemGroup</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><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="prev" href="class-gtktoolitem.html" title="gtk.ToolItem"><link rel="next" href="class-gtktoolpalette.html" title="gtk.ToolPalette"></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.ToolItemGroup</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtktoolitem.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtktoolpalette.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.ToolItemGroup"><a name="class-gtktoolitemgroup"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.ToolItemGroup</h2><p>gtk.ToolItemGroup — a sub container used in a tool palette (new in PyGTK 2.22)</p></div><div class="refsect1" title="Synopsis"><a name="id4006996"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.ToolItemGroup</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a></span></span>):
<code class="constructorsynopsis"> <span class="methodname"><PYGTKDOCLINK HREF="constructor-gtktoolitemgroup">gtk.ToolItemGroup</PYGTKDOCLINK></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>label</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolitemgroup.html#method-gtktoolitemgroup--set-label" title="gtk.ToolItemGroup.set_label">set_label</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>label</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolitemgroup.html#method-gtktoolitemgroup--set-label-widget" title="gtk.ToolItemGroup.set_label_widget">set_label_widget</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>label_widget</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolitemgroup.html#method-gtktoolitemgroup--set-collapsed" title="gtk.ToolItemGroup.set_collapsed">set_collapsed</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>collapsed</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolitemgroup.html#method-gtktoolitemgroup--set-ellipsize" title="gtk.ToolItemGroup.set_ellipsize">set_ellipsize</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>ellipsize</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolitemgroup.html#method-gtktoolitemgroup--set-header-relief" title="gtk.ToolItemGroup.set_header_relief">set_header_relief</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>style</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolitemgroup.html#method-gtktoolitemgroup--get-label" title="gtk.ToolItemGroup.get_label">get_label</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolitemgroup.html#method-gtktoolitemgroup--get-label-widget" title="gtk.ToolItemGroup.get_label_widget">get_label_widget</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolitemgroup.html#method-gtktoolitemgroup--get-collapsed" title="gtk.ToolItemGroup.get_collapsed">get_collapsed</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolitemgroup.html#method-gtktoolitemgroup--get-ellipsize" title="gtk.ToolItemGroup.get_ellipsize">get_ellipsize</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolitemgroup.html#method-gtktoolitemgroup--get-header-relief" title="gtk.ToolItemGroup.get_header_relief">get_header_relief</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolitemgroup.html#method-gtktoolitemgroup--insert" title="gtk.ToolItemGroup.insert">insert</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>item</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>position</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolitemgroup.html#method-gtktoolitemgroup--set-item-position" title="gtk.ToolItemGroup.set_item_position">set_item_position</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>item</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>position</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolitemgroup.html#method-gtktoolitemgroup--get-item-position" title="gtk.ToolItemGroup.get_item_position">get_item_position</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>item</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolitemgroup.html#method-gtktoolitemgroup--get-n-items" title="gtk.ToolItemGroup.get_n_items">get_n_items</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolitemgroup.html#method-gtktoolitemgroup--get-nth-item" title="gtk.ToolItemGroup.get_nth_item">get_nth_item</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>index</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolitemgroup.html#method-gtktoolitemgroup--get-drop-item" title="gtk.ToolItemGroup.get_drop_item">get_drop_item</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>)</code><br></pre></td></tr></table></div><div class="refsect1" title="Ancestry"><a name="id4007493"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">GObject</PYGTKDOCLINK>
+-- <a class="link" href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
+-- <a class="link" href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a>
+-- <a class="link" href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a>
+-- <a class="link" href="class-gtktoolitemgroup.html" title="gtk.ToolItemGroup">gtk.ToolItemGroup</a>
</pre></div><div class="refsect1" title="Implemented Interfaces"><a name="id4007538"></a><h2>Implemented Interfaces</h2><p>
<a class="link" href="class-gtktoolitemgroup.html" title="gtk.ToolItemGroup"><code class="classname">gtk.ToolItemGroup</code></a>
implements
<a class="link" href="class-atkimplementor.html" title="atk.Implementor"><code class="classname">atk.ImplementorIFace</code></a>,
<a class="link" href="class-gtkbuildable.html" title="gtk.Buildable"><code class="classname">gtk.Buildable</code></a>,
<a class="link" href="class-gtktoolshell.html" title="gtk.ToolShell"><code class="classname">gtk.ToolShell</code></a>
</p></div><div class="refsect1" title="gtk.ToolItemGroup Properties"><a name="properties-gtktoolitemgroup"></a><h2>gtk.ToolItemGroup 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><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table width="100%" border="0"><colgroup><col width="1in"><col width="1in"><col width="4in"></colgroup><tbody><tr valign="top"><td valign="top">"collapsed"</td><td valign="top">Read-Write</td><td valign="top">Whether the group has been collapsed and items are hidden.
Default value: <code class="literal">False</code>.
This property is available in GTK+ 2.20 and above.</td></tr><tr valign="top"><td valign="top">"ellipsize"</td><td valign="top">Read-Write</td><td valign="top">Ellipsize for item group headers.
Default value: <code class="literal">pango.ELLIPSIZE_NONE</code>.
This property is available in GTK+ 2.20 and above.</td></tr><tr valign="top"><td valign="top">"header-relief"</td><td valign="top">Read-Write</td><td valign="top">Relief of the group header button.
Default value: <code class="literal">gtk.RELIEF_NORMAL</code>.
This property is available in GTK+ 2.20 and above.</td></tr><tr valign="top"><td valign="top">"label"</td><td valign="top">Read-Write</td><td valign="top">The human-readable title of this item group.
Default value: ""
This property is available in GTK+ 2.20 and above.</td></tr><tr valign="top"><td valign="top">"label-widget"</td><td valign="top">Read-Write</td><td valign="top">A widget to display in place of the usual label.
This property is available in GTK+ 2.20 and above.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="gtk.ToolItemGroup Child Properties"><a name="child-properties-gtktoolitemgroup"></a><h2>gtk.ToolItemGroup Child 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 width="1in"><col width="1in"><col width="4in"></colgroup><tbody><tr valign="top"><td valign="top">"expand"</td><td valign="top">Read-Write</td><td valign="top">Whether the item should receive extra space when the group grows.
Default value: <code class="literal">False</code>.
This property is available in GTK+ 2.20 and above.</td></tr><tr valign="top"><td valign="top">"fill"</td><td valign="top">Read-Write</td><td valign="top">Whether the item should fill the available space.
Default value: <code class="literal">True</code>.
This property is available in GTK+ 2.20 and above.</td></tr><tr valign="top"><td valign="top">"homogeneous"</td><td valign="top">Read-Write</td><td valign="top">Whether the item should be the same size as other homogeneous items.
Default value: <code class="literal">True</code>.
This property is available in GTK+ 2.20 and above.</td></tr><tr valign="top"><td valign="top">"new-row"</td><td valign="top">Read-Write</td><td valign="top">Whether the item should start a new row.
Default value: <code class="literal">False</code>
This property is available in GTK+ 2.20 and above.</td></tr><tr valign="top"><td valign="top">"position"</td><td valign="top">Read-Write</td><td valign="top">Position of the item within this group.
Allowed values: >=0.
Default value: 0.
This property is available in GTK+ 2.20 and above.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="gtk.ToolItemGroup Style Properties"><a name="style-properties-gtktoolitemgroup"></a><h2>gtk.ToolItemGroup 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><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table width="100%" border="0"><colgroup><col width="1in"><col width="1in"><col width="4in"></colgroup><tbody><tr valign="top"><td valign="top">"expander-size"</td><td valign="top">Read</td><td valign="top">Size of the expander arrow.
Allowed values: >=0.
Default value: 16.
This property is available in GTK+ 2.20 and above.</td></tr><tr valign="top"><td valign="top">"header-spacing"</td><td valign="top">Read</td><td valign="top">Spacing between expander arrow and caption.
Allowed values: >=0.
Default value: 2.
This property is available in GTK+ 2.20 and above.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="gtk.ToolItemGroup Signal Prototypes"><a name="signal-prototypes-gtktoolitemgroup"></a><h2>gtk.ToolItemGroup 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></div><div class="refsect1" title="Description"><a name="id4008107"></a><h2>Description</h2><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This widget is available in PyGTK 2.22 and above.</p></div><p>A <a class="link" href="class-gtktoolitemgroup.html" title="gtk.ToolItemGroup"><code class="classname">gtk.ToolItemGroup</code></a>
is used together with <a class="link" href="class-gtktoolpalette.html" title="gtk.ToolPalette"><code class="classname">gtk.ToolPalette</code></a>
to add <a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a> objects to
a palette like container with different categories and drag and drop support.</p></div><div class="refsect1" title="Constructor"><a name="id4008151"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis"> <span class="methodname"><PYGTKDOCLINK HREF="constructor-gtktoolitemgroup">gtk.ToolItemGroup</PYGTKDOCLINK></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>label</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>label</code></strong> :</span></p></td><td>the label of the new group</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new <a class="link" href="class-gtktoolitemgroup.html" title="gtk.ToolItemGroup"><code class="classname">gtk.ToolItemGroup</code></a>.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This constructor is available in PyGTK 2.22 and above.</p></div><p>Creates a new tool item group with label <em class="parameter"><code>label</code></em>.</p></div><div class="refsect1" title="Methods"><a name="id4008253"></a><h2>Methods</h2><div class="refsect2" title="gtk.ToolItemGroup.set_label"><a name="method-gtktoolitemgroup--set-label"></a><h3>gtk.ToolItemGroup.set_label</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_label</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>label</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>label</code></strong> :</span></p></td><td>the new human-readable label of of the group</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.22 and above.</p></div><p>The <code class="methodname">set_label</code>() method sets the label of the tool item group.
The label is displayed in the header of the group.</p></div><div class="refsect2" title="gtk.ToolItemGroup.set_label_widget"><a name="method-gtktoolitemgroup--set-label-widget"></a><h3>gtk.ToolItemGroup.set_label_widget</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_label_widget</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>label_widget</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>label_widget</code></strong> :</span></p></td><td>the widget to be displayed in place of the usual label</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.22 and above.</p></div><p>The <code class="methodname">set_label_widget</code>() method sets the label of the tool item group.
The label widget is displayed in the header of the group, in place of the usual label.</p></div><div class="refsect2" title="gtk.ToolItemGroup.set_collapsed"><a name="method-gtktoolitemgroup--set-collapsed"></a><h3>gtk.ToolItemGroup.set_collapsed</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_collapsed</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>collapsed</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>collapsed</code></strong> :</span></p></td><td><code class="literal">True</code> if <em class="parameter"><code>group</code></em> should be collapsed, <code class="literal">False</code> otherwise</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.22 and above.</p></div><p>Sets whether the <em class="parameter"><code>group</code></em> should be collapsed or expanded.</p></div><div class="refsect2" title="gtk.ToolItemGroup.set_ellipsize"><a name="method-gtktoolitemgroup--set-ellipsize"></a><h3>gtk.ToolItemGroup.set_ellipsize</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_ellipsize</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>ellipsize</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>ellipsize</code></strong> :</span></p></td><td>one of the <a class="xref" href="pango-constants.html#pango-ellipsize-mode-constants" title="Pango Ellipsize Mode Constants">Pango Ellipsize Mode Constants</a> labels in <em class="parameter"><code>group</code></em> should use</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.22 and above.</p></div><p>The <code class="methodname">set_ellipsize</code>() method sets the ellipsize mode which
should be used by labels in <em class="parameter"><code>group</code></em>.</p></div><div class="refsect2" title="gtk.ToolItemGroup.set_header_relief"><a name="method-gtktoolitemgroup--set-header-relief"></a><h3>gtk.ToolItemGroup.set_header_relief</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_header_relief</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>style</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>style</code></strong> :</span></p></td><td>one of the <a class="xref" href="gtk-constants.html#gtk-relief-style-constants" title="GTK Relief Style Constants">GTK Relief Style Constants</a></td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.22 and above.</p></div><p>Set the button relief of the group header.
See <a class="link" href="class-gtkbutton.html#method-gtkbutton--set-relief" title="gtk.Button.set_relief"><code class="methodname">gtk.Button.set_relief</code></a> for details.</p></div><div class="refsect2" title="gtk.ToolItemGroup.get_label"><a name="method-gtktoolitemgroup--get-label"></a><h3>gtk.ToolItemGroup.get_label</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_label</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 label of <em class="parameter"><code>group</code></em>. Note that <code class="literal">None</code> is returned if a custom label has been set with <a class="link" href="class-gtktoolitemgroup.html#method-gtktoolitemgroup--set-label-widget" title="gtk.ToolItemGroup.set_label_widget"><code class="methodname">gtk.ToolItemGroup.set_label_widget</code></a></td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.22 and above.</p></div><p>Gets the label of <em class="parameter"><code>group</code></em>.</p></div><div class="refsect2" title="gtk.ToolItemGroup.get_label_widget"><a name="method-gtktoolitemgroup--get-label-widget"></a><h3>gtk.ToolItemGroup.get_label_widget</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_label_widget</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 label widget of <em class="parameter"><code>group</code></em></td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.22 and above.</p></div><p>Gets the label widget of <em class="parameter"><code>group</code></em>.
See <a class="link" href="class-gtktoolitemgroup.html#method-gtktoolitemgroup--set-label-widget" title="gtk.ToolItemGroup.set_label_widget"><code class="methodname">gtk.ToolItemGroup.set_label_widget</code></a>.</p></div><div class="refsect2" title="gtk.ToolItemGroup.get_collapsed"><a name="method-gtktoolitemgroup--get-collapsed"></a><h3>gtk.ToolItemGroup.get_collapsed</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_collapsed</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><code class="literal">True</code> if <em class="parameter"><code>group</code></em> is collapsed, <code class="literal">False</code> if it is expanded</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.22 and above.</p></div><p>Gets whether <em class="parameter"><code>group</code></em> is collapsed or expanded.</p></div><div class="refsect2" title="gtk.ToolItemGroup.get_ellipsize"><a name="method-gtktoolitemgroup--get-ellipsize"></a><h3>gtk.ToolItemGroup.get_ellipsize</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_ellipsize</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>one of the <a class="xref" href="pango-constants.html#pango-ellipsize-mode-constants" title="Pango Ellipsize Mode Constants">Pango Ellipsize Mode Constants</a></td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.22 and above.</p></div><p>Gets the ellipsization mode of <em class="parameter"><code>group</code></em>.</p></div><div class="refsect2" title="gtk.ToolItemGroup.get_header_relief"><a name="method-gtktoolitemgroup--get-header-relief"></a><h3>gtk.ToolItemGroup.get_header_relief</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_header_relief</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>one of the <a class="xref" href="gtk-constants.html#gtk-relief-style-constants" title="GTK Relief Style Constants">GTK Relief Style Constants</a></td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.22 and above.</p></div><p>Gets the relief mode of the header button of <em class="parameter"><code>group</code></em>.</p></div><div class="refsect2" title="gtk.ToolItemGroup.insert"><a name="method-gtktoolitemgroup--insert"></a><h3>gtk.ToolItemGroup.insert</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">insert</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>item</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>position</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>item</code></strong> :</span></p></td><td>the <a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a> to insert into <em class="parameter"><code>group</code></em></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>position</code></strong> :</span></p></td><td>the position of <em class="parameter"><code>item</code></em> in <em class="parameter"><code>group</code></em>, starting with 0. The position -1 means end of list.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.22 and above.</p></div><p>Inserts <em class="parameter"><code>item</code></em> at <em class="parameter"><code>position</code></em> in the list of children of <em class="parameter"><code>group</code></em>.</p></div><div class="refsect2" title="gtk.ToolItemGroup.set_item_position"><a name="method-gtktoolitemgroup--set-item-position"></a><h3>gtk.ToolItemGroup.set_item_position</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_item_position</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>item</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>position</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>item</code></strong> :</span></p></td><td>the <a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a> to move to a new position, should be a child of <em class="parameter"><code>group</code></em>.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>position</code></strong> :</span></p></td><td>the new position of <em class="parameter"><code>item</code></em> in <em class="parameter"><code>group</code></em>, starting with 0. The position -1 means end of list.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.22 and above.</p></div><p>The <code class="methodname">set_item_position</code>() method sets the position of
<em class="parameter"><code>item</code></em> in the list of children of <em class="parameter"><code>group</code></em>.</p></div><div class="refsect2" title="gtk.ToolItemGroup.get_item_position"><a name="method-gtktoolitemgroup--get-item-position"></a><h3>gtk.ToolItemGroup.get_item_position</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_item_position</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>item</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>item</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the index of <em class="parameter"><code>item</code></em> in <em class="parameter"><code>group</code></em> or -1 if <em class="parameter"><code>item</code></em> is no child of <em class="parameter"><code>group</code></em></td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.22 and above.</p></div><p>Gets the position of <em class="parameter"><code>item</code></em> in <em class="parameter"><code>group</code></em> as index.</p></div><div class="refsect2" title="gtk.ToolItemGroup.get_n_items"><a name="method-gtktoolitemgroup--get-n-items"></a><h3>gtk.ToolItemGroup.get_n_items</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_n_items</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 number of tool items in <em class="parameter"><code>group</code></em></td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.22 and above.</p></div><p>Gets the number of tool items in <em class="parameter"><code>group</code></em>.</p></div><div class="refsect2" title="gtk.ToolItemGroup.get_nth_item"><a name="method-gtktoolitemgroup--get-nth-item"></a><h3>gtk.ToolItemGroup.get_nth_item</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_nth_item</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>index</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>index</code></strong> :</span></p></td><td>the index</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the <a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a> at index</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.22 and above.</p></div><p>Gets the tool item at <em class="parameter"><code>index</code></em> in group.</p></div><div class="refsect2" title="gtk.ToolItemGroup.get_drop_item"><a name="method-gtktoolitemgroup--get-drop-item"></a><h3>gtk.ToolItemGroup.get_drop_item</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_drop_item</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</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>x</code></strong> :</span></p></td><td>the x position</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y position</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the <a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a> at position (x, y)</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.22 and above.</p></div><p>Gets the tool item at position (x, y).</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-gtktoolitem.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-gtktoolpalette.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.ToolItem </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtk.ToolPalette</td></tr></table></div></body></html>
|