~ubuntu-branches/ubuntu/natty/pygtk/natty-proposed

« back to all changes in this revision

Viewing changes to docs/html/class-gtklinkbutton.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-01-07 11:08:47 UTC
  • mfrom: (1.2.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100107110847-f5av7e1ttudh7ra6
Tags: 2.17.0-0ubuntu1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.LinkButton</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" 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-gtklayout.html" title="gtk.Layout"><link rel="next" href="class-gtkliststore.html" title="gtk.ListStore"></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.LinkButton</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtklayout.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkliststore.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtklinkbutton"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.LinkButton</h2><p>gtk.LinkButton — a button bound to a URL (new in PyGTK 2.10)</p></div><div class="refsect1" lang="en"><a name="id3570077"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.LinkButton</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkbutton.html" title="gtk.Button">gtk.Button</a></span></span>):
 
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.LinkButton</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.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="prev" href="class-gtklayout.html" title="gtk.Layout"><link rel="next" href="class-gtkliststore.html" title="gtk.ListStore"></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.LinkButton</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtklayout.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkliststore.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.LinkButton"><a name="class-gtklinkbutton"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.LinkButton</h2><p>gtk.LinkButton — a button bound to a URL (new in PyGTK 2.10)</p></div><div class="refsect1" title="Synopsis"><a name="id3879950"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.LinkButton</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkbutton.html" title="gtk.Button">gtk.Button</a></span></span>):
2
2
<code class="constructorsynopsis">    <span class="methodname"><a class="link" href="class-gtklinkbutton.html#constructor-gtklinkbutton" title="gtk.LinkButton">gtk.LinkButton</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>uri</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>label</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtklinkbutton.html#method-gtklinkbutton--get-uri" title="gtk.LinkButton.get_uri">get_uri</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtklinkbutton.html#method-gtklinkbutton--get-visited" title="gtk.LinkButton.get_visited">get_visited</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtklinkbutton.html#method-gtklinkbutton--set-uri" title="gtk.LinkButton.set_uri">set_uri</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>uri</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtklinkbutton.html#method-gtklinkbutton--set-visited" title="gtk.LinkButton.set_visited">set_visited</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>visited</code></strong></span></span>)</code><br></pre></td></tr></table><pre class="programlisting">
3
3
<span class="bold"><strong>Functions</strong></span>
4
4
 
5
 
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtklinkbutton.html#function-gtk--link-button-set-uri-hook" title="gtk.link_button_set_uri_hook">gtk.link_button_set_uri_hook</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>func</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>data</code></strong></span><span class="initializer">=None</span></span>)</code></pre></div><div class="refsect1" lang="en"><a name="id3570300"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
 
5
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtklinkbutton.html#function-gtk--link-button-set-uri-hook" title="gtk.link_button_set_uri_hook">gtk.link_button_set_uri_hook</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>func</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>data</code></strong></span><span class="initializer">=None</span></span>)</code></pre></div><div class="refsect1" title="Ancestry"><a name="id3880173"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
6
6
  +-- <a class="link" href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
7
7
    +-- <a class="link" href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a>
8
8
      +-- <a class="link" href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a>
9
9
        +-- <a class="link" href="class-gtkbin.html" title="gtk.Bin">gtk.Bin</a>
10
10
          +-- <a class="link" href="class-gtkbutton.html" title="gtk.Button">gtk.Button</a>
11
11
            +-- <a class="link" href="class-gtklinkbutton.html" title="gtk.LinkButton">gtk.LinkButton</a>
12
 
</pre></div><div class="refsect1" lang="en"><a name="id3570357"></a><h2>Implemented Interfaces</h2><p>
 
12
</pre></div><div class="refsect1" title="Implemented Interfaces"><a name="id3880230"></a><h2>Implemented Interfaces</h2><p>
13
13
                        <a class="link" href="class-gtklinkbutton.html" title="gtk.LinkButton"><code class="classname">gtk.LinkButton</code></a>
14
14
                        implements 
15
15
                        <a class="link" href="class-gtkbuildable.html" title="gtk.Buildable"><code class="classname">gtk.Buildable</code></a>
16
 
                </p></div><div class="refsect1" lang="en"><a name="properties-gtklinkbutton"></a><h2>gtk.LinkButton 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><col><col></colgroup><tbody><tr valign="top"><td valign="top">"uri"</td><td valign="top">Read-Write</td><td valign="top">The URI bound to this button. Available in GTK+
 
16
                </p></div><div class="refsect1" title="gtk.LinkButton Properties"><a name="properties-gtklinkbutton"></a><h2>gtk.LinkButton 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="4in"></colgroup><tbody><tr valign="top"><td valign="top">"uri"</td><td valign="top">Read-Write</td><td valign="top">The URI bound to this button. Available in GTK+
17
17
              2.10.</td></tr><tr valign="top"><td valign="top">"visited"</td><td valign="top">Read-Write</td><td valign="top">The 'visited' state of this button. A visited link is drawn
18
18
              in a different color. Default value: <code class="literal">False</code>.
19
 
              Available in GTK+ 2.14.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="style-properties-gtklinkbutton"></a><h2>gtk.LinkButton 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" lang="en"><a name="signal-prototypes-gtklinkbutton"></a><h2>gtk.LinkButton 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></div><div class="refsect1" lang="en"><a name="id3570591"></a><h2>Description</h2><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>The <a class="link" href="class-gtklinkbutton.html" title="gtk.LinkButton"><code class="classname">gtk.LinkButton</code></a>
 
19
              Available in GTK+ 2.14.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="gtk.LinkButton Style Properties"><a name="style-properties-gtklinkbutton"></a><h2>gtk.LinkButton 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.LinkButton Signal Prototypes"><a name="signal-prototypes-gtklinkbutton"></a><h2>gtk.LinkButton 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></div><div class="refsect1" title="Description"><a name="id3880465"></a><h2>Description</h2><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>The <a class="link" href="class-gtklinkbutton.html" title="gtk.LinkButton"><code class="classname">gtk.LinkButton</code></a>
20
20
      is available in PyGTK 2.10 and above.</p></div><p>A <a class="link" href="class-gtklinkbutton.html" title="gtk.LinkButton"><code class="classname">gtk.LinkButton</code></a>
21
21
    is a <a class="link" href="class-gtkbutton.html" title="gtk.Button"><code class="classname">gtk.Button</code></a> with
22
22
    a hyperlink, similar to the one used by web browsers, that triggers an
29
29
    method.</p><p><a class="link" href="class-gtklinkbutton.html" title="gtk.LinkButton"><code class="classname">gtk.LinkButton</code></a>
30
30
    offers a global hook, which is called when the used clicks on it: see
31
31
    the <a class="link" href="class-gtklinkbutton.html#function-gtk--link-button-set-uri-hook" title="gtk.link_button_set_uri_hook"><code class="function">gtk.link_button_set_uri_hook</code>()</a>
32
 
    function.</p></div><div class="refsect1" lang="en"><a name="id3570700"></a><h2>Constructor</h2><div class="refsect2" lang="en"><a name="constructor-gtklinkbutton"></a><h3>gtk.LinkButton</h3><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">gtk.LinkButton</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>uri</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>label</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>uri</code></strong> :</span></p></td><td>a valid URI</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>label</code></strong> :</span></p></td><td>the text of the button or
33
 
          <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 new link button widget.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This constructor is available in PyGTK 2.10 and above.</p></div><p>Creates a new <a class="link" href="class-gtklinkbutton.html" title="gtk.LinkButton"><code class="classname">gtk.LinkButton</code></a>
 
32
    function.</p></div><div class="refsect1" title="Constructor"><a name="id3880573"></a><h2>Constructor</h2><div class="refsect2" title="gtk.LinkButton"><a name="constructor-gtklinkbutton"></a><h3>gtk.LinkButton</h3><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">gtk.LinkButton</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>uri</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>label</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>uri</code></strong> :</span></p></td><td>a valid URI</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>label</code></strong> :</span></p></td><td>the text of the button or
 
33
          <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 new link button widget.</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.10 and above.</p></div><p>Creates a new <a class="link" href="class-gtklinkbutton.html" title="gtk.LinkButton"><code class="classname">gtk.LinkButton</code></a>
34
34
      with the URI specified by <em class="parameter"><code>uri</code></em> as its text if
35
35
      <em class="parameter"><code>label</code></em> is <code class="literal">None</code>. If
36
36
      <em class="parameter"><code>label</code></em> is not <code class="literal">None</code>, it is
37
 
      used as the text of the button.</p></div></div><div class="refsect1" lang="en"><a name="id3570876"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtklinkbutton--get-uri"></a><h3>gtk.LinkButton.get_uri</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_uri</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 associated URI.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">get_uri</code>() method returns the URI
 
37
      used as the text of the button.</p></div></div><div class="refsect1" title="Methods"><a name="id3880749"></a><h2>Methods</h2><div class="refsect2" title="gtk.LinkButton.get_uri"><a name="method-gtklinkbutton--get-uri"></a><h3>gtk.LinkButton.get_uri</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_uri</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 associated URI.</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.10 and above.</p></div><p>The <code class="methodname">get_uri</code>() method returns the URI
38
38
      set using the <a class="link" href="class-gtklinkbutton.html#method-gtklinkbutton--set-uri" title="gtk.LinkButton.set_uri"><code class="methodname">gtk.LinkButton.set_uri()</code></a>
39
39
      method or the <a class="link" href="class-gtklinkbutton.html#constructor-gtklinkbutton" title="gtk.LinkButton">gtk.LinkButton</a>()
40
 
      constructor.</p></div><div class="refsect2" lang="en"><a name="method-gtklinkbutton--get-visited"></a><h3>gtk.LinkButton.get_visited</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_visited</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 the link has been visited,
41
 
          <code class="literal">False</code> otherwise </td></tr></tbody></table><div class="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>
 
40
      constructor.</p></div><div class="refsect2" title="gtk.LinkButton.get_visited"><a name="method-gtklinkbutton--get-visited"></a><h3>gtk.LinkButton.get_visited</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_visited</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 the link has been visited,
 
41
          <code class="literal">False</code> otherwise </td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.14 and above.</p></div><p>
42
42
        The <code class="methodname">get_visited</code>() method retrieves the 'visited'
43
43
        state of the URI where the GtkLinkButton points. The button becomes visited
44
44
        when it is clicked. If the URI is changed on the button, the 'visited'
45
45
        state is unset again. 
46
 
      </p></div><div class="refsect2" lang="en"><a name="method-gtklinkbutton--set-uri"></a><h3>gtk.LinkButton.set_uri</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_uri</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>uri</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>uri</code></strong> :</span></p></td><td>a valid URI</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">set_uri</code>() method sets the string
 
46
      </p></div><div class="refsect2" title="gtk.LinkButton.set_uri"><a name="method-gtklinkbutton--set-uri"></a><h3>gtk.LinkButton.set_uri</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_uri</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>uri</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>uri</code></strong> :</span></p></td><td>a valid URI</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.10 and above.</p></div><p>The <code class="methodname">set_uri</code>() method sets the string
47
47
      specified by <em class="parameter"><code>uri</code></em> as the URI the <a class="link" href="class-gtklinkbutton.html" title="gtk.LinkButton"><code class="classname">gtk.LinkButton</code></a>
48
 
      points to.</p></div><div class="refsect2" lang="en"><a name="method-gtklinkbutton--set-visited"></a><h3>gtk.LinkButton.set_visited</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_visited</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>visited</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>visited</code></strong> :</span></p></td><td>the new 'visited' state.</td></tr></tbody></table><div class="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>
 
48
      points to.</p></div><div class="refsect2" title="gtk.LinkButton.set_visited"><a name="method-gtklinkbutton--set-visited"></a><h3>gtk.LinkButton.set_visited</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_visited</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>visited</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>visited</code></strong> :</span></p></td><td>the new 'visited' state.</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>
49
49
        The <code class="methodname">set_visited</code>() method setsthe 'visited' state
50
50
        of the URI where the
51
51
        <a class="link" href="class-gtklinkbutton.html" title="gtk.LinkButton"><code class="classname">gtk.LinkButton</code></a>
52
52
        points. See
53
53
        <code class="methodname"><a class="link" href="class-gtklinkbutton.html#method-gtklinkbutton--get-visited" title="gtk.LinkButton.get_visited">gtk.LinkButton.get_visited</a></code>()
54
54
        for more details.
55
 
      </p></div></div><div class="refsect1" lang="en"><a name="id3571232"></a><h2>Functions</h2><div class="refsect2" lang="en"><a name="function-gtk--link-button-set-uri-hook"></a><h3>gtk.link_button_set_uri_hook</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.link_button_set_uri_hook</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>func</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>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>func</code></strong> :</span></p></td><td>a function called each time a <a class="link" href="class-gtklinkbutton.html" title="gtk.LinkButton"><code class="classname">gtk.LinkButton</code></a>
 
55
      </p></div></div><div class="refsect1" title="Functions"><a name="id3881105"></a><h2>Functions</h2><div class="refsect2" title="gtk.link_button_set_uri_hook"><a name="function-gtk--link-button-set-uri-hook"></a><h3>gtk.link_button_set_uri_hook</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.link_button_set_uri_hook</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>func</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>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>func</code></strong> :</span></p></td><td>a function called each time a <a class="link" href="class-gtklinkbutton.html" title="gtk.LinkButton"><code class="classname">gtk.LinkButton</code></a>
56
56
          is clicked, or <code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>data</code></strong> :</span></p></td><td>user data to be passed to
57
 
          <em class="parameter"><code>func</code></em></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This function is available in PyGTK 2.10 and above.</p></div><p>The <code class="function">gtk.link_button_set_uri_hook</code>() function
 
57
          <em class="parameter"><code>func</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 function is available in PyGTK 2.10 and above.</p></div><p>The <code class="function">gtk.link_button_set_uri_hook</code>() function
58
58
      sets <em class="parameter"><code>func</code></em> as the function that should be
59
59
      invoked every time a user clicks a <a class="link" href="class-gtklinkbutton.html" title="gtk.LinkButton"><code class="classname">gtk.LinkButton</code></a>.
60
60
      This function is called before every callback registered for the