/usr/share/gtk-doc/html/pygtk/class-gtktoolbar.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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.Toolbar</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-gtktoggletoolbutton.html" title="gtk.ToggleToolButton"><link rel="next" href="class-gtktoolbutton.html" title="gtk.ToolButton"></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.Toolbar</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtktoggletoolbutton.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtktoolbutton.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.Toolbar"><a name="class-gtktoolbar"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.Toolbar</h2><p>gtk.Toolbar — a bar holding buttons and other widgets.</p></div><div class="refsect1" title="Synopsis"><a name="id3987842"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.Toolbar</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"><a class="link" href="class-gtktoolbar.html#constructor-gtktoolbar" title="Constructor">gtk.Toolbar</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolbar.html#method-gtktoolbar--insert" title="gtk.Toolbar.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>pos</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolbar.html#method-gtktoolbar--get-item-index" title="gtk.Toolbar.get_item_index">get_item_index</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-gtktoolbar.html#method-gtktoolbar--get-n-items" title="gtk.Toolbar.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-gtktoolbar.html#method-gtktoolbar--get-nth-item" title="gtk.Toolbar.get_nth_item">get_nth_item</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>n</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolbar.html#method-gtktoolbar--get-drop-index" title="gtk.Toolbar.get_drop_index">get_drop_index</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-gtktoolbar.html#method-gtktoolbar--set-drop-highlight-item" title="gtk.Toolbar.set_drop_highlight_item">set_drop_highlight_item</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>tool_item</code></strong></span></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-gtktoolbar.html#method-gtktoolbar--set-show-arrow" title="gtk.Toolbar.set_show_arrow">set_show_arrow</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>show_arrow</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolbar.html#method-gtktoolbar--get-show-arrow" title="gtk.Toolbar.get_show_arrow">get_show_arrow</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolbar.html#method-gtktoolbar--get-relief-style" title="gtk.Toolbar.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-gtktoolbar.html#method-gtktoolbar--append-item" title="gtk.Toolbar.append_item">append_item</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_private_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>callback</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>user_data</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolbar.html#method-gtktoolbar--prepend-item" title="gtk.Toolbar.prepend_item">prepend_item</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_private_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>callback</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>user_data</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolbar.html#method-gtktoolbar--insert-item" title="gtk.Toolbar.insert_item">insert_item</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_private_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>callback</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>user_data</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-gtktoolbar.html#method-gtktoolbar--insert-stock" title="gtk.Toolbar.insert_stock">insert_stock</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>stock_id</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_private_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>callback</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>user_data</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-gtktoolbar.html#method-gtktoolbar--append-space" title="gtk.Toolbar.append_space">append_space</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolbar.html#method-gtktoolbar--prepend-space" title="gtk.Toolbar.prepend_space">prepend_space</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolbar.html#method-gtktoolbar--insert-space" title="gtk.Toolbar.insert_space">insert_space</a></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-gtktoolbar.html#method-gtktoolbar--remove-space" title="gtk.Toolbar.remove_space">remove_space</a></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-gtktoolbar.html#method-gtktoolbar--append-element" title="gtk.Toolbar.append_element">append_element</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>type</code></strong></span></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>text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_private_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>callback</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>user_data</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolbar.html#method-gtktoolbar--prepend-element" title="gtk.Toolbar.prepend_element">prepend_element</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>type</code></strong></span></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>text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_private_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>callback</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>user_data</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolbar.html#method-gtktoolbar--insert-element" title="gtk.Toolbar.insert_element">insert_element</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>type</code></strong></span></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>text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_private_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>callback</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>user_data</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-gtktoolbar.html#method-gtktoolbar--append-widget" title="gtk.Toolbar.append_widget">append_widget</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>tooltip_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_private_text</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolbar.html#method-gtktoolbar--prepend-widget" title="gtk.Toolbar.prepend_widget">prepend_widget</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>tooltip_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_private_text</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolbar.html#method-gtktoolbar--insert-widget" title="gtk.Toolbar.insert_widget">insert_widget</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>tooltip_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_private_text</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-gtktoolbar.html#method-gtktoolbar--set-orientation" title="gtk.Toolbar.set_orientation">set_orientation</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>orientation</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolbar.html#method-gtktoolbar--set-style" title="gtk.Toolbar.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-gtktoolbar.html#method-gtktoolbar--set-icon-size" title="gtk.Toolbar.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-gtktoolbar.html#method-gtktoolbar--set-tooltips" title="gtk.Toolbar.set_tooltips">set_tooltips</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>enable</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolbar.html#method-gtktoolbar--unset-style" title="gtk.Toolbar.unset_style">unset_style</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolbar.html#method-gtktoolbar--unset-icon-size" title="gtk.Toolbar.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-gtktoolbar.html#method-gtktoolbar--get-orientation" title="gtk.Toolbar.get_orientation">get_orientation</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolbar.html#method-gtktoolbar--get-style" title="gtk.Toolbar.get_style">get_style</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktoolbar.html#method-gtktoolbar--get-icon-size" title="gtk.Toolbar.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-gtktoolbar.html#method-gtktoolbar--get-tooltips" title="gtk.Toolbar.get_tooltips">get_tooltips</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" title="Ancestry"><a name="id3989462"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">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-gtktoolbar.html" title="gtk.Toolbar">gtk.Toolbar</a>
</pre></div><div class="refsect1" title="Implemented Interfaces"><a name="id3989506"></a><h2>Implemented Interfaces</h2><p>
<a class="link" href="class-gtktoolbar.html" title="gtk.Toolbar"><code class="classname">gtk.Toolbar</code></a>
implements
<a class="link" href="class-gtkbuildable.html" title="gtk.Buildable"><code class="classname">gtk.Buildable</code></a>
</p></div><div class="refsect1" title="gtk.Toolbar Properties"><a name="properties-gtktoolbar"></a><h2>gtk.Toolbar 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">The size of the icons in a toolbar is normally determined
by the "toolbar-icon-size" setting. When this property is set, it
overrides the setting. This should only be used for
special-purpose toolbars, normal application toolbars should
respect the user preferences for the size of icons. This property
is available in GTK+ 2.10 and above.</td></tr><tr valign="top"><td valign="top">"icon-size-set"</td><td valign="top">Read-Write</td><td valign="top">if <code class="literal">True</code> the icon-size property has
been set. This property is available in GTK+ 2.10 and
above.</td></tr><tr valign="top"><td valign="top">"orientation"</td><td valign="top">Read-Write</td><td valign="top">The orientation of the toolbar:
<code class="literal">gtk.ORIENTATION_HORIZONTAL</code> or
<code class="literal">gtk.ORIENTATION_VERTICAL</code></td></tr><tr valign="top"><td valign="top">"show-arrow"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code> an arrow should be shown
if the toolbar doesn't fit. Available in GTK+ 2.4 and above.</td></tr><tr valign="top"><td valign="top">"toolbar-style"</td><td valign="top">Read-Write</td><td valign="top">The toolbar style:
<code class="literal">gtk.TOOLBAR_ICONS</code>, <code class="literal">gtk.TOOLBAR_TEXT</code>,
<code class="literal">gtk.TOOLBAR_BOTH</code> or
<code class="literal">gtk.TOOLBAR_BOTH_HORIZ</code></td></tr><tr valign="top"><td valign="top">"tooltips"</td><td valign="top">Read-Write</td><td valign="top">If the tooltips of the toolbar should be active or not.
This property is available in GTK+ 2.8 and above.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="gtk.Toolbar Style Properties"><a name="style-properties-gtktoolbar"></a><h2>gtk.Toolbar 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">"button-relief"</td><td valign="top">Read</td><td valign="top">The type of bevel around toolbar buttons:
<code class="literal">gtk.RELIEF_NORMAL</code>, <code class="literal">gtk.RELIEF_HALF</code> or
<code class="literal">gtk.RELIEF_NONE</code></td></tr><tr valign="top"><td valign="top">"internal-padding"</td><td valign="top">Read</td><td valign="top">The amount of border space between the toolbar shadow
and the buttons</td></tr><tr valign="top"><td valign="top">"max-child-expand"</td><td valign="top">Read</td><td valign="top">Maximum amount of space an expandable item will be given</td></tr><tr valign="top"><td valign="top">"shadow-type"</td><td valign="top">Read</td><td valign="top">The style of bevel around the toolbar:
<code class="literal">gtk.SHADOW_NONE</code>, <code class="literal">gtk.SHADOW_IN</code>,
<code class="literal">gtk.SHADOW_OUT</code>, <code class="literal">gtk.SHADOW_ETCHED_IN</code>
or <code class="literal">gtk.SHADOW_ETCHED_OUT</code></td></tr><tr valign="top"><td valign="top">"space-size"</td><td valign="top">Read</td><td valign="top">The size of spacers</td></tr><tr valign="top"><td valign="top">"space-style"</td><td valign="top">Read</td><td valign="top">The spacer style:
<code class="literal">gtk.TOOLBAR_SPACE_EMPTY</code> or
<code class="literal">gtk.TOOLBAR_SPACE_LINE</code></td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="gtk.Toolbar Child Properties"><a name="child-properties-gtktoolbar"></a><h2>gtk.Toolbar 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">If <code class="literal">True</code>, the item should receive
extra space when the toolbar grows. Available in GTK+ 2.4 and above.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="gtk.Toolbar Signal Prototypes"><a name="signal-prototypes-gtktoolbar"></a><h2>gtk.Toolbar 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-gtktoolbar.html#signal-gtktoolbar--focus-home-or-end" title='The "focus-home-or-end" gtk.Toolbar Signal'>focus-home-or-end</a></span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>toolbar</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>focus_home</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><tr><td><p><span class="term">"<a class="link" href="class-gtktoolbar.html#signal-gtktoolbar--move-focus" title='The "move-focus" gtk.Toolbar Signal'>move-focus</a></span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>toolbar</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>dir</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><tr><td><p><span class="term">"<a class="link" href="class-gtktoolbar.html#signal-gtktoolbar--orientation-changed" title='The "orientation-changed" gtk.Toolbar Signal'>orientation-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>toolbar</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>orientation</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><tr><td><p><span class="term">"<a class="link" href="class-gtktoolbar.html#signal-gtktoolbar--popup-context-menu" title='The "popup-context-menu" gtk.Toolbar Signal'>popup-context-menu</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>toolbar</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>x</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>y</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>button</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><tr><td><p><span class="term">"<a class="link" href="class-gtktoolbar.html#signal-gtktoolbar--style-changed" title='The "style-changed" gtk.Toolbar Signal'>style-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>toolbar</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>style</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="id3990546"></a><h2>Description</h2><p>A <a class="link" href="class-gtktoolbar.html" title="gtk.Toolbar"><code class="classname">gtk.Toolbar</code></a> is a
subclass of <a class="link" href="class-gtkcontainer.html" title="gtk.Container"><code class="classname">gtk.Container</code></a>
that holds and manages a set of buttons and widgets in a horizontal or
vertical bar. A <a class="link" href="class-gtktoolbar.html" title="gtk.Toolbar"><code class="classname">gtk.Toolbar</code></a> is
usually used in an application as an alternative to a menu to provide a more
direct means to activate dialogs or set options. Items in the toolbar can be
visibly grouped by adding space between the elements. The toolbar style can
be set to display only icons, only text or both icons and text. Each toolbar
item has an associated <a class="link" href="class-gtktooltips.html" title="gtk.Tooltips"><code class="classname">gtk.Tooltips</code></a> to
provide a brief description of the items purpose.</p><p>In <code class="literal">PyGTK</code> 2.4 the interface of the <a class="link" href="class-gtktoolbar.html" title="gtk.Toolbar"><code class="classname">gtk.Toolbar</code></a> has
changed to take advantage of the new <a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a>
widgets. The following describes the new features.</p><p>A toolbar can contain instances of a subclass of <a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a>
(<a class="link" href="class-gtktoolbutton.html" title="gtk.ToolButton"><code class="classname">gtk.ToolButton</code></a>,
<a class="link" href="class-gtkradiotoolbutton.html" title="gtk.RadioToolButton"><code class="classname">gtk.RadioToolButton</code></a>,
<a class="link" href="class-gtktoggletoolbutton.html" title="gtk.ToggleToolButton"><code class="classname">gtk.ToggleToolButton</code></a>
and <a class="link" href="class-gtkseparatortoolitem.html" title="gtk.SeparatorToolItem"><code class="classname">gtk.SeparatorToolItem</code></a>). To
add a <a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a> to
the a toolbar, use the <a class="link" href="class-gtktoolbar.html#method-gtktoolbar--insert" title="gtk.Toolbar.insert"><code class="methodname">insert</code>()</a>
method. To remove an item from the toolbar use the <a class="link" href="class-gtkcontainer.html#method-gtkcontainer--remove" title="gtk.Container.remove"><code class="methodname">gtk.Container.remove</code>()</a>
method. To add a button to the toolbar, add an instance of <a class="link" href="class-gtktoolbutton.html" title="gtk.ToolButton"><code class="classname">gtk.ToolButton</code></a>. Toolbar
items can be visually grouped by adding instances of <a class="link" href="class-gtkseparatortoolitem.html" title="gtk.SeparatorToolItem"><code class="classname">gtk.SeparatorToolItem</code></a>
to the toolbar. If a <a class="link" href="class-gtkseparatortoolitem.html" title="gtk.SeparatorToolItem"><code class="classname">gtk.SeparatorToolItem</code></a>
has the "expand" property set to <code class="literal">True</code> and the "draw"
property set to <code class="literal">False</code> the effect is to force all
following items to the end of the toolbar. Creating a context menu for the
toolbar can be done by connecting to the "popup-context-menu" signal.</p></div><div class="refsect1" title="Constructor"><a name="constructor-gtktoolbar"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis"> <span class="methodname">gtk.Toolbar</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-gtktoolbar.html" title="gtk.Toolbar"><code class="classname">gtk.Toolbar</code></a>
widget</td></tr></tbody></table><p>Creates a new <a class="link" href="class-gtktoolbar.html" title="gtk.Toolbar"><code class="classname">gtk.Toolbar</code></a>
widget.</p></div><div class="refsect1" title="Methods"><a name="id3990796"></a><h2>Methods</h2><div class="refsect2" title="gtk.Toolbar.insert"><a name="method-gtktoolbar--insert"></a><h3>gtk.Toolbar.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>pos</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"><strong class="parameter"><code>pos</code></strong> :</span></p></td><td>the position of the new 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.4 and above</p></div><p>The <code class="methodname">insert</code>() method inserts the <a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a>
specified by <em class="parameter"><code>item</code></em> into the toolbar at the position
specified by <em class="parameter"><code>pos</code></em>. If <em class="parameter"><code>pos</code></em> is 0
<em class="parameter"><code>item</code></em> is prepended to the start of the toolbar. If
<em class="parameter"><code>pos</code></em> is negative, <em class="parameter"><code>item</code></em> is
appended to the end of the toolbar.</p></div><div class="refsect2" title="gtk.Toolbar.get_item_index"><a name="method-gtktoolbar--get-item-index"></a><h3>gtk.Toolbar.get_item_index</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_item_index</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>
that is a child of the toolbar</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the position of item on the
toolbar.</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.4 and above</p></div><p>The <code class="methodname">get_item_index</code>() method returns the
position (starting from 0) on the toolbar of the <a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a>
specified by <em class="parameter"><code>item</code></em>. It is an error
if <em class="parameter"><code>item</code></em> is not a child of the toolbar.</p></div><div class="refsect2" title="gtk.Toolbar.get_n_items"><a name="method-gtktoolbar--get-n-items"></a><h3>gtk.Toolbar.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 items on the
toolbar</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.4 and above</p></div><p>The <code class="methodname">get_n_items</code>() method returns the
number of items on the toolbar.</p></div><div class="refsect2" title="gtk.Toolbar.get_nth_item"><a name="method-gtktoolbar--get-nth-item"></a><h3>gtk.Toolbar.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>n</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>n</code></strong> :</span></p></td><td>a position on the toolbar</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>
on the toolbar at position <em class="parameter"><code>n</code></em>, or
<code class="literal">None</code> if there isn't an item at position
<em class="parameter"><code>n</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.4 and above</p></div><p>The <code class="methodname">get_nth_item</code>() method returns the
toolbar <a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a> at
the position specified by <em class="parameter"><code>n</code></em>, or
<code class="literal">None</code> if the toolbar does not contain an item at position
<em class="parameter"><code>n</code></em>.</p></div><div class="refsect2" title="gtk.Toolbar.get_drop_index"><a name="method-gtktoolbar--get-drop-index"></a><h3>gtk.Toolbar.get_drop_index</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_drop_index</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 coordinate of a point on the
toolbar</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y coordinate of a point on the
toolbar</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>The toolbar position corresponding to the point
(<em class="parameter"><code>x</code></em>,
<em class="parameter"><code>y</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.4 and above</p></div><p>The <code class="methodname">get_drop_index</code>() method returns the
position on the toolbar corresponding to the point specified by
<em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>. This is useful when
dragging items to the toolbar. This method returns the position index where
a new item should be inserted.</p><p>The <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>
coordinates are relative to the toolbar.</p></div><div class="refsect2" title="gtk.Toolbar.set_drop_highlight_item"><a name="method-gtktoolbar--set-drop-highlight-item"></a><h3>gtk.Toolbar.set_drop_highlight_item</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_drop_highlight_item</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>tool_item</code></strong></span></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>tool_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>,
or <code class="literal">None</code> to turn off
highlighting</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>index</code></strong> :</span></p></td><td>a position index on the toolbar</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.4 and above</p></div><p>The <code class="methodname">set_drop_highlight_item</code>() method
highlights the toolbar to give an idea of what it would look like if the
<a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a>
specified by <em class="parameter"><code>tool_item</code></em> was added at the position
specified by <em class="parameter"><code>index</code></em>. If
<em class="parameter"><code>tool_item</code></em> is <code class="literal">None</code>, highlighting is
turned off and <em class="parameter"><code>index</code></em> is ignored.</p><p>The <em class="parameter"><code>tool_item</code></em> passed to this method must
not be part of any widget hierarchy. When an item is set as drop highlight
item it can not added to any widget hierarchy or used as highlight item for
another toolbar.</p></div><div class="refsect2" title="gtk.Toolbar.set_show_arrow"><a name="method-gtktoolbar--set-show-arrow"></a><h3>gtk.Toolbar.set_show_arrow</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_show_arrow</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>show_arrow</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>show_arrow</code></strong> :</span></p></td><td>if <code class="literal">True</code>, show an arrow to
indicate menu overflow</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.4 and above</p></div><p>The <code class="methodname">set_show_arrow</code>() method sets the
"show-arrow" property to the value of <em class="parameter"><code>show_arrow</code></em>. If
<em class="parameter"><code>show_arrow</code></em> is <code class="literal">True</code> an arrow is
displayed (for an overflow menu) when the toolbar doesn't have room for all
items on it. Items that are not displayed due to a lack of room are
available through the overflow menu.</p></div><div class="refsect2" title="gtk.Toolbar.get_show_arrow"><a name="method-gtktoolbar--get-show-arrow"></a><h3>gtk.Toolbar.get_show_arrow</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_show_arrow</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 an overflow menu can
be used</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.4 and above</p></div><p>The <code class="methodname">get_show_arrow</code>() method returns the
value of the "show-arrow" property. If "show-arrow" is
<code class="literal">True</code> the toolbar has an overflow menu. See the <a class="link" href="class-gtktoolbar.html#method-gtktoolbar--set-show-arrow" title="gtk.Toolbar.set_show_arrow"><code class="methodname">set_show_arrow()</code></a>
method for more information.</p></div><div class="refsect2" title="gtk.Toolbar.get_relief_style"><a name="method-gtktoolbar--get-relief-style"></a><h3>gtk.Toolbar.get_relief_style</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_relief_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>the relief style of buttons on the
toolbar</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.4 and above</p></div><p>The <code class="methodname">get_relief_style</code>() method returns
the relief style of buttons on the toolbar. See the <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>
method for more information. The return value will be one of:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><code class="literal">gtk.RELIEF_NORMAL</code></li><li class="listitem"><code class="literal">gtk.RELIEF_HALF</code></li><li class="listitem"><code class="literal">gtk.RELIEF_NONE</code></li></ul></div></div><div class="refsect2" title="gtk.Toolbar.append_item"><a name="method-gtktoolbar--append-item"></a><h3>gtk.Toolbar.append_item</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">append_item</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_private_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>callback</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>user_data</code></strong></span><span class="initializer">=None</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>text</code></strong> :</span></p></td><td>the text label or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tooltip_text</code></strong> :</span></p></td><td>the tooltip text or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tooltip_private_text</code></strong> :</span></p></td><td>the private tooltip text or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>icon</code></strong> :</span></p></td><td>a <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>callback</code></strong> :</span></p></td><td>a callback function or method or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>user_data</code></strong> :</span></p></td><td>a user data object or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a <a class="link" href="class-gtkbutton.html" title="gtk.Button"><code class="classname">gtk.Button</code></a>
widget</td></tr></tbody></table><div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>This method is deprecated in PyGTK 2.4 and above</p></div><p>The <code class="methodname">append_item</code>() method adds a new
<a class="link" href="class-gtkbutton.html" title="gtk.Button"><code class="classname">gtk.Button</code></a> to
the end (right or bottom) of the toolbar with:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">the label specified by
<em class="parameter"><code>text</code></em>,</li><li class="listitem">the <a class="link" href="class-gtktooltips.html" title="gtk.Tooltips"><code class="classname">gtk.Tooltips</code></a> text
and private text specified by <em class="parameter"><code>tooltip_text</code></em> and
<em class="parameter"><code>tooltip_private_text</code></em> respectively and</li><li class="listitem">an icon (or any <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a>)
specified by <em class="parameter"><code>icon</code></em>.</li></ul></div><p>A reference to the new button is returned. When the button is
clicked the function or method specified by <em class="parameter"><code>callback</code></em>
will be called with the user data specified by
<em class="parameter"><code>user_data</code></em>. All or any of the arguments can have the
value <em class="parameter"><code>None</code></em>.</p></div><div class="refsect2" title="gtk.Toolbar.prepend_item"><a name="method-gtktoolbar--prepend-item"></a><h3>gtk.Toolbar.prepend_item</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">prepend_item</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_private_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>callback</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>user_data</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>text</code></strong> :</span></p></td><td>the text label or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tooltip_text</code></strong> :</span></p></td><td>the tooltip text or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tooltip_private_text</code></strong> :</span></p></td><td>the private tooltip text or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>icon</code></strong> :</span></p></td><td>a <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>callback</code></strong> :</span></p></td><td>a callback function or method or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>user_data</code></strong> :</span></p></td><td>a user data object or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a <a class="link" href="class-gtkbutton.html" title="gtk.Button"><code class="classname">gtk.Button</code></a>
widget</td></tr></tbody></table><div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>This method is deprecated in PyGTK 2.4 and above</p></div><p>The <code class="methodname">prepend_item</code>() method adds a new
<a class="link" href="class-gtkbutton.html" title="gtk.Button"><code class="classname">gtk.Button</code></a> to
the beginning (left or top) of the toolbar with:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">the label specified by
<em class="parameter"><code>text</code></em>,</li><li class="listitem">the <a class="link" href="class-gtktooltips.html" title="gtk.Tooltips"><code class="classname">gtk.Tooltips</code></a> text
and private text specified by <em class="parameter"><code>tooltip_text</code></em> and
<em class="parameter"><code>tooltip_private_text</code></em> respectively and</li><li class="listitem">an icon (or any <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a>)
specified by <em class="parameter"><code>icon</code></em>.</li></ul></div><p>A reference to the new button is returned. When the button is
clicked the function or method specified by <em class="parameter"><code>callback</code></em>
will be called with the user data specified by
<em class="parameter"><code>user_data</code></em>. All or any of the arguments can have the
value <em class="parameter"><code>None</code></em>.</p></div><div class="refsect2" title="gtk.Toolbar.insert_item"><a name="method-gtktoolbar--insert-item"></a><h3>gtk.Toolbar.insert_item</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">insert_item</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_private_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>callback</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>user_data</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>text</code></strong> :</span></p></td><td>the text label or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tooltip_text</code></strong> :</span></p></td><td>the tooltip text or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tooltip_private_text</code></strong> :</span></p></td><td>the private tooltip text or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>icon</code></strong> :</span></p></td><td>a <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>callback</code></strong> :</span></p></td><td>a callback function or method or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>user_data</code></strong> :</span></p></td><td>a user data object or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>position</code></strong> :</span></p></td><td>The position to insert the button or -1 to
append</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a <a class="link" href="class-gtkbutton.html" title="gtk.Button"><code class="classname">gtk.Button</code></a>
widget</td></tr></tbody></table><div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>This method is deprecated in PyGTK 2.4 and above</p></div><p>The <code class="methodname">insert_item</code>() method inserts a new
<a class="link" href="class-gtkbutton.html" title="gtk.Button"><code class="classname">gtk.Button</code></a> the
toolbar at the position specified by <em class="parameter"><code>position</code></em>
with:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">the label specified by
<em class="parameter"><code>text</code></em>,</li><li class="listitem">the <a class="link" href="class-gtktooltips.html" title="gtk.Tooltips"><code class="classname">gtk.Tooltips</code></a> text
and private text specified by <em class="parameter"><code>tooltip_text</code></em> and
<em class="parameter"><code>tooltip_private_text</code></em> respectively and</li><li class="listitem">an icon (or any <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a>)
specified by <em class="parameter"><code>icon</code></em>.</li></ul></div><p>A reference to the new button is returned. When the button is
clicked the function or method specified by <em class="parameter"><code>callback</code></em>
will be called with the user data specified by
<em class="parameter"><code>user_data</code></em>. All or any of the arguments (except
<em class="parameter"><code>position</code></em>) can have the value
<em class="parameter"><code>None</code></em>. If <em class="parameter"><code>position</code></em> is negative
the button will be appended to the toolbar.</p></div><div class="refsect2" title="gtk.Toolbar.insert_stock"><a name="method-gtktoolbar--insert-stock"></a><h3>gtk.Toolbar.insert_stock</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">insert_stock</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>stock_id</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_private_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>callback</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>user_data</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>stock_id</code></strong> :</span></p></td><td>the ID of the stock item to use as the button
label and icon</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tooltip_text</code></strong> :</span></p></td><td>the tooltip text or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tooltip_private_text</code></strong> :</span></p></td><td>the private tooltip text or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>callback</code></strong> :</span></p></td><td>a callback function or method or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>user_data</code></strong> :</span></p></td><td>a user data object or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>position</code></strong> :</span></p></td><td>The position to insert the button or -1 to
append</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a <a class="link" href="class-gtkbutton.html" title="gtk.Button"><code class="classname">gtk.Button</code></a>
widget</td></tr></tbody></table><div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>This method is deprecated in PyGTK 2.4 and above</p></div><p>The <code class="methodname">insert_stock</code>() method inserts a new
<a class="link" href="class-gtkbutton.html" title="gtk.Button"><code class="classname">gtk.Button</code></a> the
toolbar at the position specified by <em class="parameter"><code>position</code></em>
with:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">the stock item specified by
<em class="parameter"><code>stock_id</code></em> used for the label text and icon,</li><li class="listitem">the <a class="link" href="class-gtktooltips.html" title="gtk.Tooltips"><code class="classname">gtk.Tooltips</code></a> text
and private text specified by <em class="parameter"><code>tooltip_text</code></em> and
<em class="parameter"><code>tooltip_private_text</code></em> respectively.</li></ul></div><p>A reference to the new button is returned. When the button is
clicked the function or method specified by <em class="parameter"><code>callback</code></em>
will be called with the user data specified by
<em class="parameter"><code>user_data</code></em>. All or any of the arguments (except
<em class="parameter"><code>position</code></em>) can have the value
<em class="parameter"><code>None</code></em>. If <em class="parameter"><code>position</code></em> is negative
the button will be appended to the toolbar. If
<em class="parameter"><code>stock_id</code></em> is not a known stock item ID, it's inserted
verbatim, except that underscores are used to mark mnemonic
accelerators.</p></div><div class="refsect2" title="gtk.Toolbar.append_space"><a name="method-gtktoolbar--append-space"></a><h3>gtk.Toolbar.append_space</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">append_space</span>(<span class="methodparam"></span>)</code></pre><div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>This method is deprecated in PyGTK 2.4 and above</p></div><p>The <code class="methodname">append_space</code>() method appends a
space to the end of the toolbar.</p></div><div class="refsect2" title="gtk.Toolbar.prepend_space"><a name="method-gtktoolbar--prepend-space"></a><h3>gtk.Toolbar.prepend_space</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">prepend_space</span>(<span class="methodparam"></span>)</code></pre><div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>This method is deprecated in PyGTK 2.4 and above</p></div><p>The <code class="methodname">prepend_space</code>() method prepends a
space to the beginning of the toolbar.</p></div><div class="refsect2" title="gtk.Toolbar.insert_space"><a name="method-gtktoolbar--insert-space"></a><h3>gtk.Toolbar.insert_space</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">insert_space</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>position</code></strong> :</span></p></td><td>The position to insert the space or -1 to
append</td></tr></tbody></table><div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>This method is deprecated in PyGTK 2.4 and above</p></div><p>The <code class="methodname">insert_space</code>() method inserts a
space at the specified <em class="parameter"><code>position</code></em> in the
toolbar.</p></div><div class="refsect2" title="gtk.Toolbar.remove_space"><a name="method-gtktoolbar--remove-space"></a><h3>gtk.Toolbar.remove_space</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">remove_space</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>position</code></strong> :</span></p></td><td>the index of the space to
remove.</td></tr></tbody></table><div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>This method is deprecated in PyGTK 2.4 and above</p></div><p>The <code class="methodname">remove_space</code>() method removes a
space from the specified <em class="parameter"><code>position</code></em>.</p></div><div class="refsect2" title="gtk.Toolbar.append_element"><a name="method-gtktoolbar--append-element"></a><h3>gtk.Toolbar.append_element</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">append_element</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>type</code></strong></span></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>text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_private_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>callback</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>user_data</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>type</code></strong> :</span></p></td><td>the type of <em class="parameter"><code>widget</code></em> - one
of: <code class="literal">gtk.TOOLBAR_CHILD_SPACE</code>,
<code class="literal">gtk.TOOLBAR_CHILD_BUTTON</code>,
<code class="literal">gtk.TOOLBAR_CHILD_TOGGLEBUTTON</code>,
<code class="literal">gtk.TOOLBAR_CHILD_RADIOBUTTON</code> or
<code class="literal">gtk.TOOLBAR_CHILD_WIDGET</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>a widget or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>text</code></strong> :</span></p></td><td>the text label or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tooltip_text</code></strong> :</span></p></td><td>the tooltip text or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tooltip_private_text</code></strong> :</span></p></td><td>the private tooltip text or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>icon</code></strong> :</span></p></td><td>a <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>callback</code></strong> :</span></p></td><td>a callback function or method or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>user_data</code></strong> :</span></p></td><td>a user data object or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the new toolbar element as a <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a>.</td></tr></tbody></table><div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>This method is deprecated in PyGTK 2.4 and above</p></div><p>The <code class="methodname">append_element</code>() method adds a new
element of the specified <em class="parameter"><code>type</code></em> to the end (right or
bottom) of the toolbar with the <a class="link" href="class-gtktooltips.html" title="gtk.Tooltips"><code class="classname">gtk.Tooltips</code></a> text
and private text specified by <em class="parameter"><code>tooltip_text</code></em> and
<em class="parameter"><code>tooltip_private_text</code></em> respectively. The behavior of
the method depends on the type of element being added:</p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><code class="literal">gtk.TOOLBAR_CHILD_WIDGET</code></span></p></td><td>The specified <em class="parameter"><code>widget</code></em> is the
element added to the toolbar. The <em class="parameter"><code>text</code></em>,
<em class="parameter"><code>icon</code></em>, <em class="parameter"><code>callback</code></em> and
<em class="parameter"><code>user_data</code></em> arguments are ignored.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.TOOLBAR_CHILD_BUTTON</code></span></p></td><td>The string specified by <em class="parameter"><code>text</code></em> and
the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a>
specified by <em class="parameter"><code>icon</code></em> are used to create the label for a
<a class="link" href="class-gtkbutton.html" title="gtk.Button"><code class="classname">gtk.Button</code></a> to
add to the toolbar. The function or method specified by
<em class="parameter"><code>callback</code></em> and the object specified by
<em class="parameter"><code>user_data</code></em> are connected to the button's "clicked"
signal. The <em class="parameter"><code>widget</code></em> argument must have the value
<code class="literal">None</code>.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.TOOLBAR_CHILD_TOGGLEBUTTON</code></span></p></td><td>The string specified by <em class="parameter"><code>text</code></em> and
the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a>
specified by <em class="parameter"><code>icon</code></em> are used to create the label for a
<a class="link" href="class-gtktogglebutton.html" title="gtk.ToggleButton"><code class="classname">gtk.ToggleButton</code></a>
to add to the toolbar. The function or method specified by
<em class="parameter"><code>callback</code></em> and the object specified by
<em class="parameter"><code>user_data</code></em> are connected to the button's "clicked"
signal. The <em class="parameter"><code>widget</code></em> argument must have the value
<code class="literal">None</code>.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.TOOLBAR_CHILD_RADIOBUTTON</code></span></p></td><td>The string specified by <em class="parameter"><code>text</code></em> and
the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a>
specified by <em class="parameter"><code>icon</code></em> are used to create the label for a
<a class="link" href="class-gtkradiobutton.html" title="gtk.RadioButton"><code class="classname">gtk.RadioButton</code></a>
to add to the toolbar. The <a class="link" href="class-gtkradiobutton.html" title="gtk.RadioButton"><code class="classname">gtk.RadioButton</code></a>
specified by <em class="parameter"><code>widget</code></em> is used to set the group for the
radiobutton. If <em class="parameter"><code>widget</code></em> is <code class="literal">None</code> a
new radiobutton group is created. The function or method specified by
<em class="parameter"><code>callback</code></em> and the object specified by
<em class="parameter"><code>user_data</code></em> are connected to the button's "clicked"
signal.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.TOOLBAR_CHILD_SPACE</code></span></p></td><td>A space element is added to the toolbar. The
<em class="parameter"><code>widget</code></em> argument must have the value
<code class="literal">None</code>. The <em class="parameter"><code>text</code></em>,
<em class="parameter"><code>icon</code></em>, <em class="parameter"><code>tooltip_text</code></em>,
<em class="parameter"><code>tooltip_private_text</code></em>, <em class="parameter"><code>callback</code></em>
and <em class="parameter"><code>user_data</code></em> arguments are ignored.</td></tr></tbody></table><p>The <em class="parameter"><code>text</code></em>, <em class="parameter"><code>icon</code></em>,
<em class="parameter"><code>callback</code></em>, <em class="parameter"><code>user_data</code></em>,
<em class="parameter"><code>tooltip_text</code></em> and
<em class="parameter"><code>tooltip_private_text</code></em> arguments may have the value
<em class="parameter"><code>None</code></em>.</p></div><div class="refsect2" title="gtk.Toolbar.prepend_element"><a name="method-gtktoolbar--prepend-element"></a><h3>gtk.Toolbar.prepend_element</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">prepend_element</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>type</code></strong></span></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>text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_private_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>callback</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>user_data</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>type</code></strong> :</span></p></td><td>the type of <em class="parameter"><code>widget</code></em> - one
of: <code class="literal">gtk.TOOLBAR_CHILD_SPACE</code>,
<code class="literal">gtk.TOOLBAR_CHILD_BUTTON</code>,
<code class="literal">gtk.TOOLBAR_CHILD_TOGGLEBUTTON</code>,
<code class="literal">gtk.TOOLBAR_CHILD_RADIOBUTTON</code> or
<code class="literal">gtk.TOOLBAR_CHILD_WIDGET</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>a widget or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>text</code></strong> :</span></p></td><td>the text label or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tooltip_text</code></strong> :</span></p></td><td>the tooltip text or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tooltip_private_text</code></strong> :</span></p></td><td>the private tooltip text or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>icon</code></strong> :</span></p></td><td>a <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>callback</code></strong> :</span></p></td><td>a callback function or method or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>user_data</code></strong> :</span></p></td><td>a user data object or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the new toolbar element as a <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a>.</td></tr></tbody></table><div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>This method is deprecated in PyGTK 2.4 and above</p></div><p>The <code class="methodname">prepend_element</code>() method adds a new
element of the specified <em class="parameter"><code>type</code></em> to the beginning (left
or top) of the toolbar with the <a class="link" href="class-gtktooltips.html" title="gtk.Tooltips"><code class="classname">gtk.Tooltips</code></a> text
and private text specified by <em class="parameter"><code>tooltip_text</code></em> and
<em class="parameter"><code>tooltip_private_text</code></em> respectively. The behavior of
the method depends on the type of element being added:</p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><code class="literal">gtk.TOOLBAR_CHILD_WIDGET</code></span></p></td><td>The widget specified by <em class="parameter"><code>widget</code></em>
is the element added to the toolbar, otherwise <em class="parameter"><code>widget</code></em>
should be <code class="literal">None</code>. The <em class="parameter"><code>text</code></em>,
<em class="parameter"><code>icon</code></em>, <em class="parameter"><code>callback</code></em> and
<em class="parameter"><code>user_data</code></em> arguments are ignored.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.TOOLBAR_CHILD_BUTTON</code></span></p></td><td>The string specified by <em class="parameter"><code>text</code></em> and
the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a>
specified by <em class="parameter"><code>icon</code></em> are used to create the label for a
<a class="link" href="class-gtkbutton.html" title="gtk.Button"><code class="classname">gtk.Button</code></a> to
add to the toolbar. The function or method specified by
<em class="parameter"><code>callback</code></em> and the object specified by
<em class="parameter"><code>user_data</code></em> are connected to the button's "clicked"
signal. The <em class="parameter"><code>widget</code></em> argument must have the value
<code class="literal">None</code>.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.TOOLBAR_CHILD_TOGGLEBUTTON</code></span></p></td><td>The string specified by <em class="parameter"><code>text</code></em> and
the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a>
specified by <em class="parameter"><code>icon</code></em> are used to create the label for a
<a class="link" href="class-gtktogglebutton.html" title="gtk.ToggleButton"><code class="classname">gtk.ToggleButton</code></a>
to add to the toolbar. The function or method specified by
<em class="parameter"><code>callback</code></em> and the object specified by
<em class="parameter"><code>user_data</code></em> are connected to the button's "clicked"
signal. The <em class="parameter"><code>widget</code></em> argument must have the value
<code class="literal">None</code>.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.TOOLBAR_CHILD_RADIOBUTTON</code></span></p></td><td>The string specified by <em class="parameter"><code>text</code></em> and
the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a>
specified by <em class="parameter"><code>icon</code></em> are used to create the label for a
<a class="link" href="class-gtkradiobutton.html" title="gtk.RadioButton"><code class="classname">gtk.RadioButton</code></a>
to add to the toolbar. The <a class="link" href="class-gtkradiobutton.html" title="gtk.RadioButton"><code class="classname">gtk.RadioButton</code></a>
specified by <em class="parameter"><code>widget</code></em> is used to set the group for the
radiobutton. If <em class="parameter"><code>widget</code></em> is <code class="literal">None</code> a
new radiobutton group is created. The function or method specified by
<em class="parameter"><code>callback</code></em> and the object specified by
<em class="parameter"><code>user_data</code></em> are connected to the button's "clicked"
signal.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.TOOLBAR_CHILD_SPACE</code></span></p></td><td>A space element is added to the toolbar. The
<em class="parameter"><code>widget</code></em> argument must have the value
<code class="literal">None</code>. The <em class="parameter"><code>text</code></em>,
<em class="parameter"><code>icon</code></em>, <em class="parameter"><code>tooltip_text</code></em>,
<em class="parameter"><code>tooltip_private_text</code></em>, <em class="parameter"><code>callback</code></em>
and <em class="parameter"><code>user_data</code></em> arguments are ignored.</td></tr></tbody></table><p>The <em class="parameter"><code>text</code></em>, <em class="parameter"><code>icon</code></em>,
<em class="parameter"><code>callback</code></em>, <em class="parameter"><code>user_data</code></em>,
<em class="parameter"><code>tooltip_text</code></em> and
<em class="parameter"><code>tooltip_private_text</code></em> arguments may have the value
<em class="parameter"><code>None</code></em>.</p></div><div class="refsect2" title="gtk.Toolbar.insert_element"><a name="method-gtktoolbar--insert-element"></a><h3>gtk.Toolbar.insert_element</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">insert_element</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>type</code></strong></span></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>text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_private_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>callback</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>user_data</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>type</code></strong> :</span></p></td><td>the type of <em class="parameter"><code>widget</code></em> - one
of: <code class="literal">gtk.TOOLBAR_CHILD_SPACE</code>,
<code class="literal">gtk.TOOLBAR_CHILD_BUTTON</code>,
<code class="literal">gtk.TOOLBAR_CHILD_TOGGLEBUTTON</code>,
<code class="literal">gtk.TOOLBAR_CHILD_RADIOBUTTON</code> or
<code class="literal">gtk.TOOLBAR_CHILD_WIDGET</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>a widget or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>text</code></strong> :</span></p></td><td>the text label or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tooltip_text</code></strong> :</span></p></td><td>the tooltip text or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tooltip_private_text</code></strong> :</span></p></td><td>the private tooltip text or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>icon</code></strong> :</span></p></td><td>a <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>callback</code></strong> :</span></p></td><td>a callback function or method or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>user_data</code></strong> :</span></p></td><td>a user data object or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>position</code></strong> :</span></p></td><td>the position to insert the new element
at.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the new toolbar element as a <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a>.</td></tr></tbody></table><div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>This method is deprecated in PyGTK 2.4 and above</p></div><p>The <code class="methodname">insert_element</code>() method adds a new
element of the specified <em class="parameter"><code>type</code></em> at the specified
<em class="parameter"><code>position</code></em> in the toolbar with the <a class="link" href="class-gtktooltips.html" title="gtk.Tooltips"><code class="classname">gtk.Tooltips</code></a> text
and private text specified by <em class="parameter"><code>tooltip_text</code></em> and
<em class="parameter"><code>tooltip_private_text</code></em> respectively. The behavior of
the method depends on the type of element being added:</p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><code class="literal">gtk.TOOLBAR_CHILD_WIDGET</code></span></p></td><td>The widget specified by <em class="parameter"><code>widget</code></em>
is the element added to the toolbar, otherwise <em class="parameter"><code>widget</code></em>
should be <code class="literal">None</code>. The <em class="parameter"><code>text</code></em>,
<em class="parameter"><code>icon</code></em>, <em class="parameter"><code>callback</code></em> and
<em class="parameter"><code>user_data</code></em> arguments are ignored.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.TOOLBAR_CHILD_BUTTON</code></span></p></td><td>The string specified by <em class="parameter"><code>text</code></em> and
the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a>
specified by <em class="parameter"><code>icon</code></em> are used to create the label for a
<a class="link" href="class-gtkbutton.html" title="gtk.Button"><code class="classname">gtk.Button</code></a> to
add to the toolbar. The function or method specified by
<em class="parameter"><code>callback</code></em> and the object specified by
<em class="parameter"><code>user_data</code></em> are connected to the button's "clicked"
signal. The <em class="parameter"><code>widget</code></em> argument must have the value
<code class="literal">None</code>.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.TOOLBAR_CHILD_TOGGLEBUTTON</code></span></p></td><td>The string specified by <em class="parameter"><code>text</code></em> and
the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a>
specified by <em class="parameter"><code>icon</code></em> are used to create the label for a
<a class="link" href="class-gtktogglebutton.html" title="gtk.ToggleButton"><code class="classname">gtk.ToggleButton</code></a>
to add to the toolbar. The function or method specified by
<em class="parameter"><code>callback</code></em> and the object specified by
<em class="parameter"><code>user_data</code></em> are connected to the button's "clicked"
signal. The <em class="parameter"><code>widget</code></em> argument must have the value
<code class="literal">None</code>.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.TOOLBAR_CHILD_RADIOBUTTON</code></span></p></td><td>The string specified by <em class="parameter"><code>text</code></em> and
the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a>
specified by <em class="parameter"><code>icon</code></em> are used to create the label for a
<a class="link" href="class-gtkradiobutton.html" title="gtk.RadioButton"><code class="classname">gtk.RadioButton</code></a>
to add to the toolbar. The <a class="link" href="class-gtkradiobutton.html" title="gtk.RadioButton"><code class="classname">gtk.RadioButton</code></a>
specified by <em class="parameter"><code>widget</code></em> is used to set the group for the
radiobutton. If <em class="parameter"><code>widget</code></em> is <code class="literal">None</code> a
new radiobutton group is created. The function or method specified by
<em class="parameter"><code>callback</code></em> and the object specified by
<em class="parameter"><code>user_data</code></em> are connected to the button's "clicked"
signal.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.TOOLBAR_CHILD_SPACE</code></span></p></td><td>A space element is added to the toolbar. The
<em class="parameter"><code>widget</code></em> argument must have the value
<code class="literal">None</code>. The <em class="parameter"><code>text</code></em>,
<em class="parameter"><code>icon</code></em>, <em class="parameter"><code>tooltip_text</code></em>,
<em class="parameter"><code>tooltip_private_text</code></em>, <em class="parameter"><code>callback</code></em>
and <em class="parameter"><code>user_data</code></em> arguments are ignored.</td></tr></tbody></table><p>The <em class="parameter"><code>text</code></em>, <em class="parameter"><code>icon</code></em>,
<em class="parameter"><code>callback</code></em>, <em class="parameter"><code>user_data</code></em>,
<em class="parameter"><code>tooltip_text</code></em> and
<em class="parameter"><code>tooltip_private_text</code></em> arguments may have the value
<em class="parameter"><code>None</code></em>.</p></div><div class="refsect2" title="gtk.Toolbar.append_widget"><a name="method-gtktoolbar--append-widget"></a><h3>gtk.Toolbar.append_widget</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">append_widget</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>tooltip_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_private_text</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> to add to
the toolbar.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tooltip_text</code></strong> :</span></p></td><td>the tooltip text or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tooltip_private_text</code></strong> :</span></p></td><td>the private tooltip text or
<code class="literal">None</code></td></tr></tbody></table><div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>This method is deprecated in PyGTK 2.4 and above</p></div><p>The <code class="methodname">append_widget</code>() method adds the
specified <em class="parameter"><code>widget</code></em> to the end (right or bottom) of the
toolbar. <em class="parameter"><code>tooltip_text</code></em> and
<em class="parameter"><code>tooltip_private_text</code></em> specify the tooltip text and
private text respectively.</p></div><div class="refsect2" title="gtk.Toolbar.prepend_widget"><a name="method-gtktoolbar--prepend-widget"></a><h3>gtk.Toolbar.prepend_widget</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">prepend_widget</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>tooltip_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_private_text</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> to add to
the toolbar.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tooltip_text</code></strong> :</span></p></td><td>the tooltip text or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tooltip_private_text</code></strong> :</span></p></td><td>the private tooltip text or
<code class="literal">None</code></td></tr></tbody></table><div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>This method is deprecated in PyGTK 2.4 and above</p></div><p>The <code class="methodname">prepend_widget</code>() method adds the
specified <em class="parameter"><code>widget</code></em> to the start (left or top) of the
toolbar. <em class="parameter"><code>tooltip_text</code></em> and
<em class="parameter"><code>tooltip_private_text</code></em> specify the tooltip text and
private text respectively.</p></div><div class="refsect2" title="gtk.Toolbar.insert_widget"><a name="method-gtktoolbar--insert-widget"></a><h3>gtk.Toolbar.insert_widget</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">insert_widget</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>tooltip_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip_private_text</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>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> to add to
the toolbar.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tooltip_text</code></strong> :</span></p></td><td>the tooltip text or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tooltip_private_text</code></strong> :</span></p></td><td>the private tooltip text or
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>position</code></strong> :</span></p></td><td>the position to insert this widget
at.</td></tr></tbody></table><div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>This method is deprecated in PyGTK 2.4 and above</p></div><p>The <code class="methodname">insert_widget</code>() method adds the
specified <em class="parameter"><code>widget</code></em> at the specified
<em class="parameter"><code>position</code></em> in the toolbar.
<em class="parameter"><code>tooltip_text</code></em> and
<em class="parameter"><code>tooltip_private_text</code></em> specify the tooltip text and
private text respectively.</p></div><div class="refsect2" title="gtk.Toolbar.set_orientation"><a name="method-gtktoolbar--set-orientation"></a><h3>gtk.Toolbar.set_orientation</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_orientation</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>orientation</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>orientation</code></strong> :</span></p></td><td>the new orientation either
<code class="literal">gtk.ORIENTATION_HORIZONTAL</code> or
<code class="literal">gtk.ORIENTATION_VERTICAL</code></td></tr></tbody></table><p>The <code class="methodname">set_orientation</code>() method sets the
"orientation" property to the value of <em class="parameter"><code>orientation</code></em>.
The value of orientation is either
<code class="literal">gtk.ORIENTATION_HORIZONTAL</code> or
<code class="literal">gtk.ORIENTATION_VERTICAL</code></p></div><div class="refsect2" title="gtk.Toolbar.set_style"><a name="method-gtktoolbar--set-style"></a><h3>gtk.Toolbar.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>the new style - one of:
<code class="literal">gtk.TOOLBAR_ICONS</code>, <code class="literal">gtk.TOOLBAR_TEXT</code>,
<code class="literal">gtk.TOOLBAR_BOTH</code> or
<code class="literal">gtk.TOOLBAR_BOTH_HORIZ</code></td></tr></tbody></table><p>The <code class="methodname">set_style</code>() method sets the
"toolbar-style" property to the value of <em class="parameter"><code>style</code></em>. The
value of <em class="parameter"><code>style</code></em> must be one of the <a class="xref" href="gtk-constants.html#gtk-toolbar-style-constants" title="GTK Toolbar Style Constants">GTK Toolbar Style Constants</a>. Setting the style
overrides the user preferences for the toolbar style.</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>A <a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a> label
will not be displayed if the toolbar style is
<code class="literal">gtk.TOOLBAR_BOTH_HORIZ</code> and the <a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a>
"is-important" property is <code class="literal">False</code> (the default). See the
<a class="link" href="class-gtktoolitem.html#method-gtktoolitem--set-is-important" title="gtk.ToolItem.set_is_important"><code class="methodname">gtk.ToolItem.set_is_important</code>()</a>
method for more information.</p></div></div><div class="refsect2" title="gtk.Toolbar.set_icon_size"><a name="method-gtktoolbar--set-icon-size"></a><h3>gtk.Toolbar.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>The size of stock icons in the toolbar - one
of: <code class="literal">gtk.ICON_SIZE_MENU</code>,
<code class="literal">gtk.ICON_SIZE_SMALL_TOOLBAR</code>,
<code class="literal">gtk.ICON_SIZE_LARGE_TOOLBAR</code>,
<code class="literal">gtk.ICON_SIZE_BUTTON</code>,
<code class="literal">gtk.ICON_SIZE_DND</code> or
<code class="literal">gtk.ICON_SIZE_DIALOG</code></td></tr></tbody></table><p>The <code class="methodname">set_icon_size</code>() method sets the
size of stock icons in the toolbar to the value specified by
<em class="parameter"><code>icon_size</code></em>. The value of
<em class="parameter"><code>icon_size</code></em> must be one of:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><code class="literal">gtk.ICON_SIZE_MENU</code></li><li class="listitem"><code class="literal">gtk.ICON_SIZE_SMALL_TOOLBAR</code></li><li class="listitem"><code class="literal">gtk.ICON_SIZE_LARGE_TOOLBAR</code></li><li class="listitem"><code class="literal">gtk.ICON_SIZE_BUTTON</code></li><li class="listitem"><code class="literal">gtk.ICON_SIZE_DND</code>, or</li><li class="listitem"><code class="literal">gtk.ICON_SIZE_DIALOG</code></li></ul></div><p>This method can be called both before and after adding the
icons. Setting the icon size will override the user preferences for the
default icon size.</p></div><div class="refsect2" title="gtk.Toolbar.set_tooltips"><a name="method-gtktoolbar--set-tooltips"></a><h3>gtk.Toolbar.set_tooltips</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_tooltips</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>enable</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>enable</code></strong> :</span></p></td><td>if <code class="literal">True</code> tooltips should be
used</td></tr></tbody></table><p>The <code class="methodname">set_tooltips</code>() method enables or
disables tooltips for the toolbar depending on the value of
<em class="parameter"><code>enable</code></em>. If <em class="parameter"><code>enable</code></em> is
<code class="literal">True</code>, tooltips will be used.</p></div><div class="refsect2" title="gtk.Toolbar.unset_style"><a name="method-gtktoolbar--unset-style"></a><h3>gtk.Toolbar.unset_style</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">unset_style</span>(<span class="methodparam"></span>)</code></pre><p>The <code class="methodname">unset_style</code>() method unsets a
toolbar style set with the <a class="link" href="class-gtktoolbar.html#method-gtktoolbar--set-style" title="gtk.Toolbar.set_style"><code class="methodname">set_style</code>()</a>
method, allowing the user preferences to determine the toolbar style.</p></div><div class="refsect2" title="gtk.Toolbar.unset_icon_size"><a name="method-gtktoolbar--unset-icon-size"></a><h3>gtk.Toolbar.unset_icon_size</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">unset_icon_size</span>(<span class="methodparam"></span>)</code></pre><p>The <code class="methodname">unset_icon_size</code>() method unsets
toolbar icon size set with the <a class="link" href="class-gtktoolbar.html#method-gtktoolbar--set-icon-size" title="gtk.Toolbar.set_icon_size"><code class="methodname">set_icon_size</code>()</a>,
allowing the user preferences to determine the icon size.</p></div><div class="refsect2" title="gtk.Toolbar.get_orientation"><a name="method-gtktoolbar--get-orientation"></a><h3>gtk.Toolbar.get_orientation</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_orientation</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 orientation</td></tr></tbody></table><p>The <code class="methodname">get_orientation</code>() method returns
the value of the "orientation" property that determines the current
orientation of the toolbar. See the <a class="link" href="class-gtktoolbar.html#method-gtktoolbar--set-orientation" title="gtk.Toolbar.set_orientation"><code class="methodname">set_orientation</code>()</a>
method for more details.</p></div><div class="refsect2" title="gtk.Toolbar.get_style"><a name="method-gtktoolbar--get-style"></a><h3>gtk.Toolbar.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>the current toolbar style</td></tr></tbody></table><p>The <code class="methodname">get_style</code>() method returns the
value of the "toolbar-style" property. See the <a class="link" href="class-gtktoolbar.html#method-gtktoolbar--set-style" title="gtk.Toolbar.set_style"><code class="methodname">set_style</code>()</a>
method for more details.</p></div><div class="refsect2" title="gtk.Toolbar.get_icon_size"><a name="method-gtktoolbar--get-icon-size"></a><h3>gtk.Toolbar.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 icon size for the icons on the
toolbar.</td></tr></tbody></table><p>The <code class="methodname">get_icon_size</code>() method returns the
current icon size for the toolbar. See the <a class="link" href="class-gtktoolbar.html#method-gtktoolbar--set-icon-size" title="gtk.Toolbar.set_icon_size"><code class="methodname">set_icon_size</code>()</a>
method for more details.</p></div><div class="refsect2" title="gtk.Toolbar.get_tooltips"><a name="method-gtktoolbar--get-tooltips"></a><h3>gtk.Toolbar.get_tooltips</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_tooltips</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 tooltips are
enabled</td></tr></tbody></table><p>The <code class="methodname">get_tooltips</code>() method returns
<code class="literal">True</code> if tooltips are enabled. See the <a class="link" href="class-gtktoolbar.html#method-gtktoolbar--set-tooltips" title="gtk.Toolbar.set_tooltips"><code class="methodname">set_tooltips</code>()</a>
method for more details.</p></div></div><div class="refsect1" title="Signals"><a name="id3997988"></a><h2>Signals</h2><div class="refsect2" title='The "focus-home-or-end" gtk.Toolbar Signal'><a name="signal-gtktoolbar--focus-home-or-end"></a><h3>The "focus-home-or-end" gtk.Toolbar Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>toolbar</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>focus_home</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>toolbar</code></em> :</span></p></td><td>the <a class="link" href="class-gtktoolbar.html" title="gtk.Toolbar"><code class="classname">gtk.Toolbar</code></a> which emitted the signal
the object which received the signal.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>focus_home</code></em> :</span></p></td><td><code class="literal">True</code> if the first item
should be focused</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><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> if the signal was
handled, <code class="literal">False</code> if not</td></tr></tbody></table><p>A keybinding signal used internally by GTK+. This signal can't
be used in application code</p></div><div class="refsect2" title='The "move-focus" gtk.Toolbar Signal'><a name="signal-gtktoolbar--move-focus"></a><h3>The "move-focus" gtk.Toolbar Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>toolbar</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>dir</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>arg1</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>toolbar</code></em> :</span></p></td><td>the <a class="link" href="class-gtktoolbar.html" title="gtk.Toolbar"><code class="classname">gtk.Toolbar</code></a>
which emitted the signal the object which received the
signal.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>dir</code></em> :</span></p></td><td>one of the <a class="xref" href="gtk-constants.html#gtk-direction-type-constants" title="GTK Direction Type Constants">GTK Direction Type Constants</a></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><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> if the signal was
handled, <code class="literal">False</code> if not</td></tr></tbody></table><p>A keybinding signal used internally by GTK+. This signal can't
be used in application code.</p></div><div class="refsect2" title='The "orientation-changed" gtk.Toolbar Signal'><a name="signal-gtktoolbar--orientation-changed"></a><h3>The "orientation-changed" gtk.Toolbar Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>toolbar</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>orientation</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>toolbar</code></em> :</span></p></td><td>the toolbar that received the
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>orientation</code></em> :</span></p></td><td>the new orientation</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><p>The "orientation-changed" signal is emitted when the
<em class="parameter"><code>orientation</code></em> of <em class="parameter"><code>toolbar</code></em> is
changed.</p></div><div class="refsect2" title='The "popup-context-menu" gtk.Toolbar Signal'><a name="signal-gtktoolbar--popup-context-menu"></a><h3>The "popup-context-menu" gtk.Toolbar Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>toolbar</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>x</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>y</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>button</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>toolbar</code></em> :</span></p></td><td>the toolbar that received the
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td><td>the x coordinate of the mouse
event</td></tr><tr><td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td><td>the u coordinate of the mouse
event</td></tr><tr><td><p><span class="term"><em class="parameter"><code>button</code></em> :</span></p></td><td>the number of the mouse button</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><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> if the signal was
handled</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.4 and above.</p></div><p>The "popup-context-menu" signal is emitted when the user
right-clicks the toolbar or uses the keybinding to display a popup
menu. Application developers should handle this signal if they want to
display a context menu on the toolbar. The context-menu should appear at the
coordinates given by <em class="parameter"><code>x</code></em> and
<em class="parameter"><code>y</code></em>. The mouse button number is given by the
<em class="parameter"><code>button</code></em> parameter. If the menu was popped up using the
keyboard, <em class="parameter"><code>button</code></em> is -1.</p></div><div class="refsect2" title='The "style-changed" gtk.Toolbar Signal'><a name="signal-gtktoolbar--style-changed"></a><h3>The "style-changed" gtk.Toolbar Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>toolbar</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>style</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>toolbar</code></em> :</span></p></td><td>the toolbar that received the
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>style</code></em> :</span></p></td><td>the new style</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><p>The "style-changed" signal is emitted when the
<em class="parameter"><code>style</code></em> of <em class="parameter"><code>toolbar</code></em> is
changed.</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-gtktoggletoolbutton.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-gtktoolbutton.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.ToggleToolButton </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtk.ToolButton</td></tr></table></div></body></html>
|