1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gtk.Arrow</title><meta name="generator" content="DocBook XSL Stylesheets V1.65.1"><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="previous" href="class-gtkalignment.html" title="gtk.Alignment"><link rel="next" href="class-gtkaspectframe.html" title="gtk.AspectFrame"></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.Arrow</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkalignment.html">Prev</a></td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"><a accesskey="n" href="class-gtkaspectframe.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkarrow"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2>gtk.Arrow</h2><p>gtk.Arrow — produces an arrow pointing in one of the four cardinal
directions.</p></div><div class="refsect1" lang="en"><a name="id3203048"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.Arrow</span></span>(<span class="ooclass"><span class="classname"><a href="class-gtkmisc.html" title="gtk.Misc">gtk.Misc</a></span></span>):
<code class="constructorsynopsis"> <span class="methodname"><a href="class-gtkarrow.html#constructor-gtkarrow" title="Constructor">gtk.Arrow</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>arrow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a href="class-gtkarrow.html#method-gtkarrow--set" title="gtk.Arrow.set">set</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>arrow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3143312"></a><h2>Ancestry</h2><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="synopsis">+-- <a href="class-gobject.html" title="gobject.GObject">gobject.GObject</a>
+-- <a href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
+-- <a href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a>
+-- <a href="class-gtkmisc.html" title="gtk.Misc">gtk.Misc</a>
+-- <a href="class-gtkarrow.html" title="gtk.Arrow">gtk.Arrow</a>
</pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3130444"></a><h2>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><col><col></colgroup><tbody><tr valign="top"><td valign="top">"arrow-type"</td><td valign="top">Read/Write</td><td valign="top">The direction the arrow should point (gtk.ARROW_UP,
gtk.ARROW_DOWN, gtk.ARROW_LEFT, or gtk.ARROW_RIGHT)</td></tr><tr valign="top"><td valign="top">"shadow-type"</td><td valign="top">Read/Write</td><td valign="top">Appearance of the shadow surrounding the arrow (gtk.SHADOW
IN, gtk.SHADOW OUT, gtk.ETCHED IN, or gtk.ETCHED OUT)</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="id3102633"></a><h2>Description</h2><p>The <a href="class-gtkarrow.html" title="gtk.Arrow"><tt class="classname">gtk.Arrow</tt></a> is used to
draw simple arrows that point in one of the four cardinal directions
(gtk.ARROW_UP, gtk.ARROW_DOWN, gtk.ARROW_LEFT, or gtk.ARROW_RIGHT). The
shadow style of the arrow can be one of gtk.SHADOW IN, gtk.SHADOW OUT,
gtk.ETCHED IN, or gtk.ETCHED OUT.</p><p>A <a href="class-gtkarrow.html" title="gtk.Arrow"><tt class="classname">gtk.Arrow</tt></a> will fill
any space alloted to it, but since it is inherited from <a href="class-gtkmisc.html" title="gtk.Misc"><tt class="classname">gtk.Misc</tt></a>, it can be
padded and/or aligned, to fill exactly the space desired.</p><p>Arrows are created with a call to <a href="class-gtkarrow.html#constructor-gtkarrow" title="Constructor"><tt class="methodname">gtk.Arrow</tt>()</a>.
The direction or style of an arrow can be changed after creation by using
<a href="class-gtkarrow.html#method-gtkarrow--set" title="gtk.Arrow.set"><tt class="methodname">arrow_set</tt>()</a>.</p></div><div class="refsect1" lang="en"><a name="constructor-gtkarrow"></a><h2>Constructor</h2><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="constructorsynopsis"> <span class="methodname">gtk.Arrow</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>arrow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>arrow_type</tt></b>:</span></td><td>one of the <a href="gtk-constants.html#gtk-arrow-type-constants">GTK Arrow Type Constants</a></td></tr><tr><td><span class="term"><b class="parameter"><tt>shadow_type</tt></b>:</span></td><td>one
of the <a href="gtk-constants.html#gtk-shadow-type-constants">GTK Shadow Type Constants</a></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a <a href="class-gtkarrow.html" title="gtk.Arrow"><tt class="classname">gtk.Arrow</tt></a>
widget</td></tr></tbody></table><p>Creates a new arrow widget with the specified
<i class="parameter"><tt>arrow_type</tt></i> and
<i class="parameter"><tt>arrow_shadow</tt></i>.</p></div><div class="refsect1" lang="en"><a name="id3288160"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkarrow--set"></a><h3>gtk.Arrow.set</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>arrow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>arrow_type</tt></b>:</span></td><td>a GtkArrowType</td></tr><tr><td><span class="term"><b class="parameter"><tt>shadow_type</tt></b>:</span></td><td>one of the <a href="gtk-constants.html#gtk-shadow-type-constants">GTK Shadow Type Constants</a></td></tr></tbody></table><p>The <tt class="methodname">set</tt>() method sets the
<i class="parameter"><tt>arrow_type</tt></i> and <i class="parameter"><tt>shadow_type</tt></i> of
the arrow widget.</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-gtkalignment.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-gtkaspectframe.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.Alignment</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">gtk.AspectFrame</td></tr></table></div></body></html>
|