This file is indexed.

/usr/share/doc/python-gtk2-tutorial/html/sec-Arrows.html is in python-gtk2-tutorial 2.4-1.

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
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>9.2. Arrows</title><meta name="generator" content="DocBook XSL Stylesheets V1.65.1"><link rel="home" href="index.html" title="PyGTK 2.0 Tutorial"><link rel="up" href="ch-MiscellaneousWidgets.html" title="Chapter 9. Miscellaneous Widgets"><link rel="previous" href="ch-MiscellaneousWidgets.html" title="Chapter 9. Miscellaneous Widgets"><link rel="next" href="sec-TooltipsObject.html" title="9.3. The Tooltips Object"></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">9.2. Arrows</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch-MiscellaneousWidgets.html">Prev</a> </td><th width="60%" align="center">Chapter 9. Miscellaneous Widgets</th><td width="20%" align="right"> <a accesskey="n" href="sec-TooltipsObject.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="sec-Arrows"></a>9.2. Arrows</h2></div></div><div></div></div><p>The <tt class="classname">Arrow</tt> widget draws an arrowhead,
facing in a number of possible directions and having a number of possible
styles. It can be very useful when placed on a button in many applications.
Like the <tt class="classname">Label</tt> widget, it emits no signals.</p><p>There are only two calls for manipulating an
<tt class="classname">Arrow</tt> widget:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">
  arrow = gtk.Arrow(<b class="parameter"><tt>arrow_type</tt></b>, <b class="parameter"><tt>shadow_type</tt></b>)

  arrow.set(<b class="parameter"><tt>arrow_type</tt></b>, <b class="parameter"><tt>shadow_type</tt></b>)
</pre></td></tr></table><p>The first creates a new arrow widget with the indicated type and
appearance. The second allows these values to be altered retrospectively.
The <i class="parameter"><tt>arrow_type</tt></i> argument may take one of the following
values:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">
  ARROW_UP
  ARROW_DOWN
  ARROW_LEFT
  ARROW_RIGHT
</pre></td></tr></table><p>These values obviously indicate the direction in which the arrow
will point. The <i class="parameter"><tt>shadow_type</tt></i> argument may take one of
these values:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">
  SHADOW_IN
  SHADOW_OUT   # the default
  SHADOW_ETCHED_IN
  SHADOW_ETCHED_OUT
</pre></td></tr></table><p>The <a href="examples/arrow.py" target="_top"><span><b class="command">arrow.py</b></span></a> example program
briefly illustrates their use.
<a href="sec-Arrows.html#arrowsfig" title="Figure 9.2. Arrows Buttons Examples">Figure 9.2, &#8220;Arrows Buttons Examples&#8221;</a> illustrates the result of running the
program:</p><div class="figure"><a name="arrowsfig"></a><p class="title"><b>Figure 9.2. Arrows Buttons Examples</b></p><div class="mediaobject" align="center"><img src="figures/arrows.png" align="middle" alt="Arrows Buttons Examples"></div></div><p>The source code for <a href="examples/arrow.py" target="_top"><span><b class="command">arrow.py</b></span></a> is:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">
    1	#!/usr/bin/env python
    2	
    3	# example arrow.py
    4	
    5	import pygtk
    6	pygtk.require('2.0')
    7	import gtk
    8	
    9	# Create an Arrow widget with the specified parameters
   10	# and pack it into a button
   11	def create_arrow_button(arrow_type, shadow_type):
   12	    button = gtk.Button();
   13	    arrow = gtk.Arrow(arrow_type, shadow_type);
   14	    button.add(arrow)
   15	    button.show()
   16	    arrow.show()
   17	    return button
   18	
   19	class Arrows:
   20	    def __init__(self):
   21	        # Create a new window
   22	        window = gtk.Window(gtk.WINDOW_TOPLEVEL)
   23	
   24	        window.set_title("Arrow Buttons")
   25	
   26	        # It's a good idea to do this for all windows.
   27	        window.connect("destroy", lambda x: gtk.main_quit())
   28	
   29	        # Sets the border width of the window.
   30	        window.set_border_width(10)
   31	
   32	        # Create a box to hold the arrows/buttons
   33	        box = gtk.HBox(False, 0)
   34	        box.set_border_width(2)
   35	        window.add(box)
   36	
   37	        # Pack and show all our widgets
   38	        box.show()
   39	
   40	        button = create_arrow_button(gtk.ARROW_UP, gtk.SHADOW_IN)
   41	        box.pack_start(button, False, False, 3)
   42	
   43	        button = create_arrow_button(gtk.ARROW_DOWN, gtk.SHADOW_OUT)
   44	        box.pack_start(button, False, False, 3)
   45	  
   46	        button = create_arrow_button(gtk.ARROW_LEFT, gtk.SHADOW_ETCHED_IN)
   47	        box.pack_start(button, False, False, 3)
   48	  
   49	        button = create_arrow_button(gtk.ARROW_RIGHT, gtk.SHADOW_ETCHED_OUT)
   50	        box.pack_start(button, False, False, 3)
   51	  
   52	        window.show()
   53	
   54	def main():
   55	    gtk.main()
   56	    return 0
   57	
   58	if __name__ == "__main__":
   59	    Arrows()
   60	    main()
</pre></td></tr></table></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch-MiscellaneousWidgets.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch-MiscellaneousWidgets.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="sec-TooltipsObject.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 9. Miscellaneous Widgets </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 9.3. The Tooltips Object</td></tr></table></div></body></html>