1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.ToolShell</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-gtktoolitem.html" title="gtk.ToolItem"><link rel="next" href="class-gtktooltip.html" title="gtk.Tooltip"></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.ToolShell</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-gtktooltip.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtktoolshell"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.ToolShell</h2><p>gtk.ToolShell — Interface for containers containing GtkToolItem widgets.</p></div><div class="refsect1" lang="en"><a name="id3761983"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.ToolShell</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-ginterface">gobject.GInterface</PYGTKDOCLINK></span></span>):
2
<code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolshell.html#method-gtktoolshell--get-icon-size" title="gtk.ToolShell.get_icon_size">get_icon_size</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolshell.html#method-gtktoolshell--get-orientation" title="gtk.ToolShell.get_orientation">get_orientation</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolshell.html#method-gtktoolshell--get-relief-style" title="gtk.ToolShell.get_relief_style">get_relief_style</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolshell.html#method-gtktoolshell--get-style" title="gtk.ToolShell.get_style">get_style</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolshell.html#method-gtktoolshell--rebuild-menu" title="gtk.ToolShell.rebuild_menu">rebuild_menu</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3762115"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-ginterface">gobject.GInterface</PYGTKDOCLINK>
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.ToolShell</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-gtktoolitem.html" title="gtk.ToolItem"><link rel="next" href="class-gtktooltip.html" title="gtk.Tooltip"></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.ToolShell</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-gtktooltip.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtktoolshell"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.ToolShell</h2><p>gtk.ToolShell — Interface for containers containing GtkToolItem widgets.</p></div><div class="refsect1" lang="en"><a name="id3962890"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.ToolShell</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-ginterface">gobject.GInterface</PYGTKDOCLINK></span></span>):
2
<code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolshell.html#method-gtktoolshell--get-icon-size" title="gtk.ToolShell.get_icon_size">get_icon_size</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolshell.html#method-gtktoolshell--get-orientation" title="gtk.ToolShell.get_orientation">get_orientation</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolshell.html#method-gtktoolshell--get-relief-style" title="gtk.ToolShell.get_relief_style">get_relief_style</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolshell.html#method-gtktoolshell--get-style" title="gtk.ToolShell.get_style">get_style</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolshell.html#method-gtktoolshell--rebuild-menu" title="gtk.ToolShell.rebuild_menu">rebuild_menu</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3963022"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-ginterface">gobject.GInterface</PYGTKDOCLINK>
3
3
+-- <a class="link" href="class-gtktoolshell.html" title="gtk.ToolShell">gtk.ToolShell</a>
4
</pre></div><div class="refsect1" lang="en"><a name="id3762141"></a><h2>Known Implementation</h2><p>
4
</pre></div><div class="refsect1" lang="en"><a name="id3963048"></a><h2>Known Implementation</h2><p>
5
5
<a class="link" href="class-gtktoolshell.html" title="gtk.ToolShell"><code class="classname">gtk.ToolShell</code></a>
7
7
<a class="link" href="class-gtktoolbar.html" title="gtk.Toolbar"><code class="classname">gtk.ToolBar</code></a>,
8
</p></div><div class="refsect1" lang="en"><a name="id3762168"></a><h2>Description</h2><p>
8
</p></div><div class="refsect1" lang="en"><a name="id3963075"></a><h2>Description</h2><p>
9
9
The <a class="link" href="class-gtktoolshell.html" title="gtk.ToolShell"><code class="classname">gtk.ToolShell</code></a>
10
10
interface allows container widgets to provide additional information when embedding GtkToolItem widgets.
11
11
see_also: <a class="link" href="class-gtktoolbar.html" title="gtk.Toolbar"><code class="classname">gtk.ToolBar</code></a>,
12
12
<a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a>
13
</p></div><div class="refsect1" lang="en"><a name="id3762203"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtktoolshell--get-icon-size"></a><h3>gtk.ToolShell.get_icon_size</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_icon_size</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 current size for icons of shell.</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.14 and above.</p></div><p>
13
</p></div><div class="refsect1" lang="en"><a name="id3963110"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtktoolshell--get-icon-size"></a><h3>gtk.ToolShell.get_icon_size</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_icon_size</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 current size for icons of shell.</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.14 and above.</p></div><p>
14
14
The <code class="methodname">get_icon_size</code>() method retrieves the
15
15
icon size for the tool shell. Tool items must not call this
16
16
function directly, but rely on