This file is indexed.

/usr/share/gtk-doc/html/pygtk/class-gtkscalebutton.html is in python-gtk2-doc 2.24.0-5.1ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 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
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.ScaleButton</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-gtkscale.html" title="gtk.Scale"><link rel="next" href="class-gtkscrollbar.html" title="gtk.Scrollbar"></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.ScaleButton</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkscale.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkscrollbar.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.ScaleButton"><a name="class-gtkscalebutton"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.ScaleButton</h2><p>gtk.ScaleButton — A button which pops up a scale. (new in PyGTK 2.12)</p></div><div class="refsect1" title="Synopsis"><a name="id3882782"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.ScaleButton</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkbutton.html" title="gtk.Button">gtk.Button</a></span></span>):
<code class="constructorsynopsis">    <span class="methodname"><a class="link" href="class-gtkscalebutton.html#constructor-gtkscalebutton" title="Constructor">gtk.ScaleButton</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>min</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>max</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>step</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>icons</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkscalebutton.html#method-gtkscalebutton--get-adjustment" title="gtk.ScaleButton.get_adjustment">get_adjustment</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkscalebutton.html#method-gtkscalebutton--get-minus-button" title="gtk.ScaleButton.get_minus_button">get_minus_button</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkscalebutton.html#method-gtkscalebutton--get-orientation" title="gtk.ScaleButton.get_orientation">get_orientation</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkscalebutton.html#method-gtkscalebutton--get-plus-button" title="gtk.ScaleButton.get_plus_button">get_plus_button</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkscalebutton.html#method-gtkscalebutton--get-popup" title="gtk.ScaleButton.get_popup">get_popup</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkscalebutton.html#method-gtkscalebutton--get-value" title="gtk.ScaleButton.get_value">get_value</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkscalebutton.html#method-gtkscalebutton--set-adjustment" title="gtk.ScaleButton.set_adjustment">set_adjustment</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>adjustment</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkscalebutton.html#method-gtkscalebutton--set-icons" title="gtk.ScaleButton.set_icons">set_icons</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>icons</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkscalebutton.html#method-gtkscalebutton--set-orientation" title="gtk.ScaleButton.set_orientation">set_orientation</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>icons</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkscalebutton.html#method-gtkscalebutton--set-value" title="gtk.ScaleButton.set_value">set_value</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>value</code></strong></span></span>)</code><br></pre></td></tr></table></div><div class="refsect1" title="Ancestry"><a name="id3883129"></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-gtkbin.html" title="gtk.Bin">gtk.Bin</a>
          +-- <a class="link" href="class-gtkbutton.html" title="gtk.Button">gtk.Button</a>
            +-- <a class="link" href="class-gtkbutton.html" title="gtk.Button">gtk.ScaleButton</a>
</pre></div><div class="refsect1" title="Implemented Interfaces"><a name="id3883186"></a><h2>Implemented Interfaces</h2><p>
			<a class="link" href="class-gtkscalebutton.html" title="gtk.ScaleButton"><code class="classname">gtk.ScaleButton</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.ScaleButton Properties"><a name="properties-gtkscalebutton"></a><h2>gtk.ScaleButton 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><p><a class="link" href="class-gtkbutton.html#properties-gtkbutton" title="gtk.Button Properties">gtk.Button 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="3.5in"></colgroup><tbody><tr valign="top"><td valign="top">"adjustment"</td><td valign="top">Read/Write</td><td valign="top">
                                The <a class="link" href="class-gtkadjustment.html" title="gtk.Adjustment"><code class="classname">gtk.Adjustment</code></a>
                                that contains the current value of this scale button object.
                            </td></tr><tr valign="top"><td valign="top">"icons"</td><td valign="top">Read/Write</td><td valign="top">
                                The names of the icons to be used by the scale button. The first item in the array
                                will be used in the button when the current value is the lowest value, the second
                                item for the highest value. All the subsequent icons will be used for all the other
                                values, spread evenly over the range of values. If there's only one icon name in the
                                icons array, it will be used for all the values. If only two icon names are in the
                                icons array, the first one will be used for the bottom 50% of the scale, and the
                                second one for the top 50%.
                                It is recommended to use at least 3 icons so that the GtkScaleButton reflects the
                                current value of the scale better for the users.
                            </td></tr><tr valign="top"><td valign="top">"orientation"</td><td valign="top">Read/Write</td><td valign="top">
                                The orientation of the
				<a class="link" href="class-gtkscalebutton.html" title="gtk.ScaleButton"><code class="classname">gtk.ScaleButton</code></a>'s
				popup window. Default value: gtk.ORIENTATION_VERTICAL.
				Available from GTK+ 2.14.
                            </td></tr><tr valign="top"><td valign="top">"size"</td><td valign="top">Read/Write</td><td valign="top">
                                The icon size. Default value: gtk.ICON_SIZE_SMALL_TOOLBAR.
                            </td></tr><tr valign="top"><td valign="top">"value"</td><td valign="top">Read/Write</td><td valign="top">
                                The value of the scale. Default value: 0.
                            </td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="gtk.ScaleButton Style Properties"><a name="style-properties-gtkscalebutton"></a><h2>gtk.ScaleButton 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><p><a class="link" href="class-gtkbutton.html#style-properties-gtkbutton" title="gtk.Button Style Properties">gtk.Button Style Properties</a></p></div><div class="refsect1" title="gtk.ScaleButton Signal Prototypes"><a name="signal-prototypes-gtkscalebutton"></a><h2>gtk.ScaleButton 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><p><a class="link" href="class-gtkbutton.html#signal-prototypes-gtkbutton" title="gtk.Button Signal Prototypes">gtk.Button 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-gtkscalebutton.html#signal-gtkscalebutton--popdown" title='The "popdown" gtk.ScaleButton Signal'>popdown</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>scalebutton</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-gtkscalebutton.html#signal-gtkscalebutton--popdown" title='The "popdown" gtk.ScaleButton Signal'>popup</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>scalebutton</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-gtkscalebutton.html#signal-gtkscalebutton--popdown" title='The "popdown" gtk.ScaleButton Signal'>value-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>scalebutton</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>value</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="id3883718"></a><h2>Description</h2><p>
                <a class="link" href="class-gtkscalebutton.html" title="gtk.ScaleButton"><code class="classname">gtk.ScaleButton</code></a>
                provides a button which pops up a scale widget. This kind of widget is commonly
                used for volume controls in multimedia applications, and GTK+ provides a
                <a class="link" href="class-gtkvolumebutton.html" title="gtk.VolumeButton"><code class="classname">gtk.VolumeButton</code></a>
                subclass that is tailored for this use case.
            </p></div><div class="refsect1" title="Constructor"><a name="constructor-gtkscalebutton"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">gtk.ScaleButton</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>min</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>max</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>step</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>icons</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>size</code></strong> :</span></p></td><td>A stock icon size.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>min</code></strong> :</span></p></td><td>The minimum value of the scale (usually 0).</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>max</code></strong> :</span></p></td><td>The maximum value of the scale (usually 100).</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>step</code></strong> :</span></p></td><td>The stepping of value when a scroll-wheel event, or
                up/down arrow event occurs (usually 2).</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>icons</code></strong> :</span></p></td><td>Optionally a list or tuple of icon names, you will be able to set the
                list later with <code class="methodname"><a class="link" href="class-gtkscalebutton.html#method-gtkscalebutton--set-icons" title="gtk.ScaleButton.set_icons">set_icons</a></code>
                </td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new
                <a class="link" href="class-gtkscalebutton.html" title="gtk.ScaleButton"><code class="classname">gtk.ScaleButton</code></a>
                object.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This constructor is available in PyGTK 2.12 and above.</p></div><p>
            Creates a <a class="link" href="class-gtkscalebutton.html" title="gtk.ScaleButton"><code class="classname">gtk.ScaleButton</code></a>,
            with a range between <em class="parameter"><code>min</code></em> and <em class="parameter"><code>max</code></em>,
            with a stepping of <em class="parameter"><code>step</code></em>.
        </p></div><div class="refsect1" title="Methods"><a name="id3884023"></a><h2>Methods</h2><div class="refsect2" title="gtk.ScaleButton.get_adjustment"><a name="method-gtkscalebutton--get-adjustment"></a><h3>gtk.ScaleButton.get_adjustment</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_adjustment</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
                        <a class="link" href="class-gtkadjustment.html" title="gtk.Adjustment"><code class="classname">gtk.Adjustment</code></a>
                        associated with the scale.</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.12 and above.</p></div><p>
                The <code class="methodname">get_adjustment</code>() method gets the
                <a class="link" href="class-gtkadjustment.html" title="gtk.Adjustment"><code class="classname">gtk.Adjustment</code></a>
                associated with the
                <a class="link" href="class-gtkscalebutton.html" title="gtk.ScaleButton"><code class="classname">gtk.ScaleButton</code></a>'s
                scale. See
                <code class="methodname"><a class="link" href="class-gtkrange.html#method-gtkrange--get-adjustment" title="gtk.Range.get_adjustment">gtk.Range.get_adjustment</a></code>
                for details.
            </p></div><div class="refsect2" title="gtk.ScaleButton.get_minus_button"><a name="method-gtkscalebutton--get-minus-button"></a><h3>gtk.ScaleButton.get_minus_button</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_minus_button</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 minus button of the
			<a class="link" href="class-gtkscalebutton.html" title="gtk.ScaleButton"><code class="classname">gtk.ScaleButton</code></a>.
			</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.14 and above.</p></div><p>
                The <code class="methodname">get_minus_button</code>() method
		retrieves the minus button of the
		<a class="link" href="class-gtkscalebutton.html" title="gtk.ScaleButton"><code class="classname">gtk.ScaleButton</code></a>.
            </p></div><div class="refsect2" title="gtk.ScaleButton.get_orientation"><a name="method-gtkscalebutton--get-orientation"></a><h3>gtk.ScaleButton.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
			<a class="link" href="class-gtkscalebutton.html" title="gtk.ScaleButton"><code class="classname">gtk.ScaleButton</code></a>'s
			orientation.
			</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.14 and above.</p></div><p>
                The <code class="methodname">get_orientation</code>() method
		gets the orientation of the
		<a class="link" href="class-gtkscalebutton.html" title="gtk.ScaleButton"><code class="classname">gtk.ScaleButton</code></a>'s
		popup window.
            </p></div><div class="refsect2" title="gtk.ScaleButton.get_plus_button"><a name="method-gtkscalebutton--get-plus-button"></a><h3>gtk.ScaleButton.get_plus_button</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_plus_button</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 plus button of the
			<a class="link" href="class-gtkscalebutton.html" title="gtk.ScaleButton"><code class="classname">gtk.ScaleButton</code></a>.
			</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.14 and above.</p></div><p>
                The <code class="methodname">get_plus_button</code>() method
		retrieves the plus button of the
		<a class="link" href="class-gtkscalebutton.html" title="gtk.ScaleButton"><code class="classname">gtk.ScaleButton</code></a>.
            </p></div><div class="refsect2" title="gtk.ScaleButton.get_popup"><a name="method-gtkscalebutton--get-popup"></a><h3>gtk.ScaleButton.get_popup</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_popup</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 popup of the
			<a class="link" href="class-gtkscalebutton.html" title="gtk.ScaleButton"><code class="classname">gtk.ScaleButton</code></a>.
			</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.14 and above.</p></div><p>
                The <code class="methodname">get_popup</code>() method
		gets the popup of the
		<a class="link" href="class-gtkscalebutton.html" title="gtk.ScaleButton"><code class="classname">gtk.ScaleButton</code></a>.
            </p></div><div class="refsect2" title="gtk.ScaleButton.get_value"><a name="method-gtkscalebutton--get-value"></a><h3>gtk.ScaleButton.get_value</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_value</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 value of the scale button.</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.12 and above.</p></div><p>
                The <code class="methodname">get_value</code>() method gets the current value of the scale button.
            </p></div><div class="refsect2" title="gtk.ScaleButton.set_adjustment"><a name="method-gtkscalebutton--set-adjustment"></a><h3>gtk.ScaleButton.set_adjustment</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_adjustment</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>adjustment</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"><strong class="parameter"><code>adjustment</code></strong> :</span></p></td><td>The
                        <a class="link" href="class-gtkadjustment.html" title="gtk.Adjustment"><code class="classname">gtk.Adjustment</code></a>
                        to set.</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.12 and above.</p></div><p>
                The <code class="methodname">set_adjustment</code>() method sets the
                <a class="link" href="class-gtkadjustment.html" title="gtk.Adjustment"><code class="classname">gtk.Adjustment</code></a>
                to be used as a model for the
                <a class="link" href="class-gtkscalebutton.html" title="gtk.ScaleButton"><code class="classname">gtk.ScaleButton</code></a>'s
                scale. See
                <code class="methodname"><a class="link" href="class-gtkrange.html#method-gtkrange--set-adjustment" title="gtk.Range.set_adjustment">gtk.Range.set_adjustment</a></code>
                for details.
            </p></div><div class="refsect2" title="gtk.ScaleButton.set_icons"><a name="method-gtkscalebutton--set-icons"></a><h3>gtk.ScaleButton.set_icons</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_icons</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>icons</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"><strong class="parameter"><code>icons</code></strong> :</span></p></td><td>A list or tuple of icon names.</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.12 and above.</p></div><p>
                The <code class="methodname">set_icons</code>() method sets the icons to be used by the
                scale button. For details, see the <a class="link" href="class-gtkbutton.html#properties-gtkbutton" title="gtk.Button Properties">gtk.ScaleButton:icons property</a>
                for details.
            </p></div><div class="refsect2" title="gtk.ScaleButton.set_orientation"><a name="method-gtkscalebutton--set-orientation"></a><h3>gtk.ScaleButton.set_orientation</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_orientation</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>icons</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"><strong class="parameter"><code>orientation</code></strong> :</span></p></td><td>the new orientation.</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.14 and above.</p></div><p>
                The <code class="methodname">set_orientation</code>() method sets the
		orientation of the
		<a class="link" href="class-gtkscalebutton.html" title="gtk.ScaleButton"><code class="classname">gtk.ScaleButton</code></a>'s
		popup window.
            </p></div><div class="refsect2" title="gtk.ScaleButton.set_value"><a name="method-gtkscalebutton--set-value"></a><h3>gtk.ScaleButton.set_value</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_value</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>value</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"><strong class="parameter"><code>value</code></strong> :</span></p></td><td>The new value of the scale button.</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.12 and above.</p></div><p>
                The <code class="methodname">set_value</code>() method sets the current value of the scale;
                if the value is outside the minimum or maximum range values, it will be
                clamped to fit inside them. The scale button emits the
                <a class="link" href="class-gtkscalebutton.html#signal-gtkscalebutton--popdown" title='The "popdown" gtk.ScaleButton Signal'>value-changed</a> signal if the value changes.
            </p></div></div><div class="refsect1" title="Signals"><a name="id3884920"></a><h2>Signals</h2><div class="refsect2" title='The "popdown" gtk.ScaleButton Signal'><a name="signal-gtkscalebutton--popdown"></a><h3>The "popdown" gtk.ScaleButton Signal</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>scalebutton</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>scalebutton</code></em> :</span></p></td><td>the scalebutton that received the "popdown" signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
                    with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
                    method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
                    any)</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This signal is available in PyGTK 2.12 and above.</p></div><p>
                The "popdown" signal is a keybinding signal which gets emitted to popdown the scale widget.
                The default binding for this signal is Escape.
            </p></div><div class="refsect2" title='The "popup" gtk.ScaleButton Signal'><a name="signal-gtkscalebutton--popup"></a><h3>The "popup" gtk.ScaleButton Signal</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>scalebutton</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>scalebutton</code></em> :</span></p></td><td>the scalebutton that received the "popup" signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
                    with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
                    method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
                    any)</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This signal is available in PyGTK 2.12 and above.</p></div><p>
                The "popup" signal is a keybinding signal which gets emitted to popup the scale widget.
                The default bindings for this signal are Space, Enter and Return.
            </p></div><div class="refsect2" title='The "value-changed" gtk.ScaleButton Signal'><a name="signal-gtkscalebutton--value-changed"></a><h3>The "value-changed" gtk.ScaleButton Signal</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>scalebutton</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>value</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>scalebutton</code></em> :</span></p></td><td>the scalebutton that received the "value-changed" signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td><td>the new value</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
                    with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
                    method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
                    any)</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This signal is available in PyGTK 2.12 and above.</p></div><p>
                The "value-changed" signal is emitted when the value field has 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-gtkscale.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-gtkscrollbar.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.Scale </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtk.Scrollbar</td></tr></table></div></body></html>