/usr/share/gtk-doc/html/pygtk/class-gtktoolpalette.html is in python-gtk2-doc 2.24.0-5.1ubuntu2.
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 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.ToolPalette</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-gtktoolitemgroup.html" title="gtk.ToolItemGroup"><link rel="next" href="class-gtktoolshell.html" title="gtk.ToolShell"></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.ToolPalette</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtktoolitemgroup.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtktoolshell.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.ToolPalette"><a name="class-gtktoolpalette"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.ToolPalette</h2><p>gtk.ToolPalette — a tool palette with categories (new in PyGTK 2.22)</p></div><div class="refsect1" title="Synopsis"><a name="id4009880"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.ToolPalette</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-gtktoolpalette">gtk.ToolPalette</PYGTKDOCLINK></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolpalette.html#method-gtktoolpalette--set-group-position" title="gtk.ToolPalette.set_group_position">set_group_position</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>group</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-gtktoolpalette.html#method-gtktoolpalette--set-exclusive" title="gtk.ToolPalette.set_exclusive">set_exclusive</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>group</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>exclusive</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolpalette.html#method-gtktoolpalette--set-expand" title="gtk.ToolPalette.set_expand">set_expand</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>group</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>expand</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolpalette.html#method-gtktoolpalette--get-group-position" title="gtk.ToolPalette.get_group_position">get_group_position</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>group</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolpalette.html#method-gtktoolpalette--get-exclusive" title="gtk.ToolPalette.get_exclusive">get_exclusive</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>group</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolpalette.html#method-gtktoolpalette--get-expand" title="gtk.ToolPalette.get_expand">get_expand</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>group</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolpalette.html#method-gtktoolpalette--set-icon-size" title="gtk.ToolPalette.set_icon_size">set_icon_size</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon_size</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolpalette.html#method-gtktoolpalette--unset-icon-size" title="gtk.ToolPalette.unset_icon_size">unset_icon_size</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolpalette.html#method-gtktoolpalette--set-style" title="gtk.ToolPalette.set_style">set_style</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-gtktoolpalette.html#method-gtktoolpalette--unset-style" title="gtk.ToolPalette.unset_style">unset_style</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolpalette.html#method-gtktoolpalette--get-icon-size" title="gtk.ToolPalette.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-gtktoolpalette.html#method-gtktoolpalette--get-style" title="gtk.ToolPalette.get_style">get_style</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolpalette.html#method-gtktoolpalette--get-drop-item" title="gtk.ToolPalette.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><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolpalette.html#method-gtktoolpalette--get-drop-group" title="gtk.ToolPalette.get_drop_group">get_drop_group</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><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolpalette.html#method-gtktoolpalette--get-drag-item" title="gtk.ToolPalette.get_drag_item">get_drag_item</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>selection</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolpalette.html#method-gtktoolpalette--set-drag-source" title="gtk.ToolPalette.set_drag_source">set_drag_source</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>targets</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolpalette.html#method-gtktoolpalette--add-drag-dest" title="gtk.ToolPalette.add_drag_dest">add_drag_dest</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>flags</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>targets</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>actions</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolpalette.html#method-gtktoolpalette--get-hadjustment" title="gtk.ToolPalette.get_hadjustment">get_hadjustment</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolpalette.html#method-gtktoolpalette--get-vadjustment" title="gtk.ToolPalette.get_vadjustment">get_vadjustment</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" title="Ancestry"><a name="id4010522"></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-gtktoolpalette.html" title="gtk.ToolPalette">gtk.ToolPalette</a>
</pre></div><div class="refsect1" title="Implemented Interfaces"><a name="id4010567"></a><h2>Implemented Interfaces</h2><p>
<a class="link" href="class-gtktoolpalette.html" title="gtk.ToolPalette"><code class="classname">gtk.ToolPalette</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>,
</p></div><div class="refsect1" title="gtk.ToolPalette Properties"><a name="properties-gtktoolpalette"></a><h2>gtk.ToolPalette 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">"icon-size"</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">"icon-size-set"</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">"toolbar-style"</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></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="gtk.ToolPalette Child Properties"><a name="child-properties-gtktoolpalette"></a><h2>gtk.ToolPalette 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">"exclusive"</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">"expand"</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></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="gtk.ToolPalette Style Properties"><a name="style-properties-gtktoolpalette"></a><h2>gtk.ToolPalette 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><div class="refsect1" title="gtk.ToolPalette Signal Prototypes"><a name="signal-prototypes-gtktoolpalette"></a><h2>gtk.ToolPalette 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><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-gtktoolpalette.html#signal-gtktoolpalette--set-scroll-adjustments" title='The "set-scroll-adjustments" gtk.ToolPalette Signal'>set-scroll-adjustments</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>toolpalette</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>hadjustment</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>vadjustment</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" title="Description"><a name="id4011020"></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-gtktoolpalette.html" title="gtk.ToolPalette"><code class="classname">gtk.ToolPalette</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="id4011063"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis"> <span class="methodname"><PYGTKDOCLINK HREF="constructor-gtktoolpalette">gtk.ToolPalette</PYGTKDOCLINK></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>a new <a class="link" href="class-gtktoolpalette.html" title="gtk.ToolPalette"><code class="classname">gtk.ToolPalette</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 palette.</p></div><div class="refsect1" title="Methods"><a name="id4011132"></a><h2>Methods</h2><div class="refsect2" title="gtk.ToolPalette.set_group_position"><a name="method-gtktoolpalette--set-group-position"></a><h3>gtk.ToolPalette.set_group_position</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_group_position</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>group</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>group</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktoolpalette.html" title="gtk.ToolPalette"><code class="classname">gtk.ToolPalette</code></a> which is a child of palette</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>position</code></strong> :</span></p></td><td>a new index for 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_group_position</code>() method sets the position of the group as an index of the tool palette.
If position is 0 the group will become the first child, if position is
-1 it will become the last child.</p></div><div class="refsect2" title="gtk.ToolPalette.set_exclusive"><a name="method-gtktoolpalette--set-exclusive"></a><h3>gtk.ToolPalette.set_exclusive</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_exclusive</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>group</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>exclusive</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-gtktoolpalette.html" title="gtk.ToolPalette"><code class="classname">gtk.ToolPalette</code></a> which is a child of palette</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>exclusive</code></strong> :</span></p></td><td>whether the group should be exclusive or not</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 group should be exclusive or not.
If an exclusive group is expanded all other groups are collapsed.</p></div><div class="refsect2" title="gtk.ToolPalette.set_expand"><a name="method-gtktoolpalette--set-expand"></a><h3>gtk.ToolPalette.set_expand</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_expand</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>group</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>expand</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-gtktoolpalette.html" title="gtk.ToolPalette"><code class="classname">gtk.ToolPalette</code></a> which is a child of palette</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>expand</code></strong> :</span></p></td><td>whether the group should be given extra space</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 group should be given extra space.</p></div><div class="refsect2" title="gtk.ToolPalette.get_group_position"><a name="method-gtktoolpalette--get-group-position"></a><h3>gtk.ToolPalette.get_group_position</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_group_position</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-gtktoolpalette.html" title="gtk.ToolPalette"><code class="classname">gtk.ToolPalette</code></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the index of group or -1 if <em class="parameter"><code>group</code></em> is not a child of <em class="parameter"><code>palette</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>group</code></em> in <em class="parameter"><code>palette</code></em> as index.
See <a class="link" href="class-gtktoolpalette.html#method-gtktoolpalette--set-group-position" title="gtk.ToolPalette.set_group_position"><code class="methodname">gtk.ToolPalette.set_group_position</code></a>.</p></div><div class="refsect2" title="gtk.ToolPalette.get_exclusive"><a name="method-gtktoolpalette--get-exclusive"></a><h3>gtk.ToolPalette.get_exclusive</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_exclusive</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-gtktoolpalette.html" title="gtk.ToolPalette"><code class="classname">gtk.ToolPalette</code></a> which is a child of palette</td></tr><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 exclusive</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 exclusive or not.
See <a class="link" href="class-gtktoolpalette.html#method-gtktoolpalette--set-exclusive" title="gtk.ToolPalette.set_exclusive"><code class="methodname">gtk.ToolPalette.set_exclusive</code></a>.</p></div><div class="refsect2" title="gtk.ToolPalette.get_expand"><a name="method-gtktoolpalette--get-expand"></a><h3>gtk.ToolPalette.get_expand</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_expand</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-gtktoolpalette.html" title="gtk.ToolPalette"><code class="classname">gtk.ToolPalette</code></a> which is a child of palette</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> if group should be given extra space, <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>Gets whether group should be given extra space.
See <a class="link" href="class-gtktoolpalette.html#method-gtktoolpalette--set-expand" title="gtk.ToolPalette.set_expand"><code class="methodname">gtk.ToolPalette.set_expand</code></a>.</p></div><div class="refsect2" title="gtk.ToolPalette.set_icon_size"><a name="method-gtktoolpalette--set-icon-size"></a><h3>gtk.ToolPalette.set_icon_size</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_icon_size</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon_size</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>icon_size</code></strong> :</span></p></td><td>one of the <a class="xref" href="gtk-constants.html#gtk-icon-size-constants" title="GTK Icon Size Constants">GTK Icon Size Constants</a> that icons in the tool palette shall have</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_icon_size</code>() method sets the size of icons in the tool palette.</p></div><div class="refsect2" title="gtk.ToolPalette.unset_icon_size"><a name="method-gtktoolpalette--unset-icon-size"></a><h3>gtk.ToolPalette.unset_icon_size</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">unset_icon_size</span>(<span class="methodparam"></span>)</code></pre><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>Unsets the tool palette icon size set with <a class="link" href="class-gtktoolpalette.html#method-gtktoolpalette--set-icon-size" title="gtk.ToolPalette.set_icon_size"><code class="methodname">gtk.ToolPalette.set_icon_size</code></a>,
so that user preferences will be used to determine the icon size.</p></div><div class="refsect2" title="gtk.ToolPalette.set_style"><a name="method-gtktoolpalette--set-style"></a><h3>gtk.ToolPalette.set_style</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_style</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-toolbar-style-constants" title="GTK Toolbar Style Constants">GTK Toolbar Style Constants</a> that items in the tool palette shall have</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_style</code>() method sets the style (text, icons or both) of items in the tool palette.</p></div><div class="refsect2" title="gtk.ToolPalette.unset_style"><a name="method-gtktoolpalette--unset-style"></a><h3>gtk.ToolPalette.unset_style</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">unset_style</span>(<span class="methodparam"></span>)</code></pre><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>Unsets a toolbar style set with <a class="link" href="class-gtktoolpalette.html#method-gtktoolpalette--set-style" title="gtk.ToolPalette.set_style"><code class="methodname">gtk.ToolPalette.set_style</code></a>,
so that user preferences will be used to determine the toolbar style.</p></div><div class="refsect2" title="gtk.ToolPalette.get_icon_size"><a name="method-gtktoolpalette--get-icon-size"></a><h3>gtk.ToolPalette.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>one of the <a class="xref" href="gtk-constants.html#gtk-icon-size-constants" title="GTK Icon Size Constants">GTK Icon Size 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 size of icons in the tool palette.
See <a class="link" href="class-gtktoolpalette.html#method-gtktoolpalette--set-icon-size" title="gtk.ToolPalette.set_icon_size"><code class="methodname">gtk.ToolPalette.set_icon_size</code></a>.</p></div><div class="refsect2" title="gtk.ToolPalette.get_style"><a name="method-gtktoolpalette--get-style"></a><h3>gtk.ToolPalette.get_style</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_style</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-toolbar-style-constants" title="GTK Toolbar Style Constants">GTK Toolbar 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 style (icons, text or both) of items in the tool palette.</p></div><div class="refsect2" title="gtk.ToolPalette.get_drop_item"><a name="method-gtktoolpalette--get-drop-item"></a><h3>gtk.ToolPalette.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 or <code class="literal">None</code> if there is no such item</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 item at position (x, y).
See <a class="link" href="class-gtktoolpalette.html#method-gtktoolpalette--get-drop-group" title="gtk.ToolPalette.get_drop_group"><code class="methodname">gtk.ToolPalette.get_drop_group</code></a>.</p></div><div class="refsect2" title="gtk.ToolPalette.get_drop_group"><a name="method-gtktoolpalette--get-drop-group"></a><h3>gtk.ToolPalette.get_drop_group</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_drop_group</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-gtktoolpalette.html" title="gtk.ToolPalette"><code class="classname">gtk.ToolPalette</code></a> at position or <code class="literal">None</code> if there is no such 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>Gets the group at position (x, y).</p></div><div class="refsect2" title="gtk.ToolPalette.get_drag_item"><a name="method-gtktoolpalette--get-drag-item"></a><h3>gtk.ToolPalette.get_drag_item</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_drag_item</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>selection</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>selection</code></strong> :</span></p></td><td>a <a class="link" href="class-gtkselectiondata.html" title="gtk.SelectionData"><code class="classname">gtk.SelectionData</code></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the dragged item in selection</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>Get the dragged item from the selection.
This could be a <a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a> or a <a class="link" href="class-gtktoolpalette.html" title="gtk.ToolPalette"><code class="classname">gtk.ToolPalette</code></a>.</p></div><div class="refsect2" title="gtk.ToolPalette.set_drag_source"><a name="method-gtktoolpalette--set-drag-source"></a><h3>gtk.ToolPalette.set_drag_source</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_drag_source</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>targets</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>targets</code></strong> :</span></p></td><td>the <code class="literal">GtkToolPaletteDragTarget</code>s which the widget should support</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_drag_source</code>() method sets the tool palette as a drag source.
Enables all groups and items in the tool palette as drag sources
on button 1 and button 3 press with copy and move actions.
See <a class="link" href="class-gtkwidget.html#method-gtkwidget--drag-source-set" title="gtk.Widget.drag_source_set"><code class="methodname">gtk.Widget.drag_source_set</code></a>.</p></div><div class="refsect2" title="gtk.ToolPalette.add_drag_dest"><a name="method-gtktoolpalette--add-drag-dest"></a><h3>gtk.ToolPalette.add_drag_dest</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">add_drag_dest</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>flags</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>targets</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>actions</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>widget</code></strong> :</span></p></td><td>a <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> which should be a drag destination for <em class="parameter"><code>palette</code></em></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>flags</code></strong> :</span></p></td><td>the flags that specify what actions GTK+ should take for drops on that widget</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>targets</code></strong> :</span></p></td><td>the <code class="literal">GtkToolPaletteDragTarget</code>s which the widget should support</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>actions</code></strong> :</span></p></td><td>the <code class="literal">GdkDragAction</code>s which the widget should suppport</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 <em class="parameter"><code>palette</code></em> as drag source (see <a class="link" href="class-gtktoolpalette.html#method-gtktoolpalette--set-drag-source" title="gtk.ToolPalette.set_drag_source"><code class="methodname">gtk.ToolPalette.set_drag_source</code></a>)
and sets <em class="parameter"><code>widget</code></em> as a drag destination for drags from <em class="parameter"><code>palette</code></em>.
See <a class="link" href="class-gtkwidget.html#method-gtkwidget--drag-dest-set" title="gtk.Widget.drag_dest_set"><code class="methodname">gtk.Widget.drag_dest_set</code></a>.</p></div><div class="refsect2" title="gtk.ToolPalette.get_hadjustment"><a name="method-gtktoolpalette--get-hadjustment"></a><h3>gtk.ToolPalette.get_hadjustment</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_hadjustment</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 horizontal adjustment of <em class="parameter"><code>palette</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 horizontal adjustment of the tool palette.</p></div><div class="refsect2" title="gtk.ToolPalette.get_vadjustment"><a name="method-gtktoolpalette--get-vadjustment"></a><h3>gtk.ToolPalette.get_vadjustment</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_vadjustment</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 vertical adjustment of <em class="parameter"><code>palette</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 vertical adjustment of the tool palette.</p></div></div><div class="refsect1" title="Signals"><a name="id4013157"></a><h2>Signals</h2><div class="refsect2" title='The "set-scroll-adjustments" gtk.ToolPalette Signal'><a name="signal-gtktoolpalette--set-scroll-adjustments"></a><h3>The "set-scroll-adjustments" gtk.ToolPalette Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>toolpalette</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>hadjustment </code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>vadjustment </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>toolpalette</code></em> :</span></p></td><td>the toolpalette that received the signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>hadjustment</code></em> :</span></p></td><td>the horizontal adjustment</td></tr><tr><td><p><span class="term"><em class="parameter"><code>vadjustment</code></em> :</span></p></td><td>the vertical adjustment</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 with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK> method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if any)</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 signal is available in GTK+ 2.20 and above.</p></div><p>The "set-scroll-adjustments" signal is emitted when one or both
adjustments (specified by <em class="parameter"><code>hadjustment</code></em> and
<em class="parameter"><code>vadjustment</code></em>) are set on textview.</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-gtktoolitemgroup.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-gtktoolshell.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.ToolItemGroup </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtk.ToolShell</td></tr></table></div></body></html>
|