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

« back to all changes in this revision

Viewing changes to docs/html/class-gtkselectiondata.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.SelectionData</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-gtkscrolledwindow.html" title="gtk.ScrolledWindow"><link rel="next" href="class-gtkseparator.html" title="gtk.Separator"></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.SelectionData</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkscrolledwindow.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkseparator.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkselectiondata"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.SelectionData</h2><p>gtk.SelectionData — an object that stores information about a
2
 
selection</p></div><div class="refsect1" lang="en"><a name="id3673956"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.SelectionData</span></span>(<span class="ooclass"><span class="classname">gobject.GBoxed</span></span>):
 
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.SelectionData</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-gtkscrolledwindow.html" title="gtk.ScrolledWindow"><link rel="next" href="class-gtkseparator.html" title="gtk.Separator"></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.SelectionData</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkscrolledwindow.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkseparator.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.SelectionData"><a name="class-gtkselectiondata"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.SelectionData</h2><p>gtk.SelectionData — an object that stores information about a
 
2
selection</p></div><div class="refsect1" title="Synopsis"><a name="id3983935"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.SelectionData</span></span>(<span class="ooclass"><span class="classname">gobject.GBoxed</span></span>):
3
3
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#method-gtkselectiondata--set" title="gtk.SelectionData.set">set</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>format</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>data</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#method-gtkselectiondata--set-text" title="gtk.SelectionData.set_text">set_text</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>str</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>len</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#method-gtkselectiondata--get-text" title="gtk.SelectionData.get_text">get_text</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#method-gtkselectiondata--get-targets" title="gtk.SelectionData.get_targets">get_targets</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#method-gtkselectiondata--targets-include-text" title="gtk.SelectionData.targets_include_text">targets_include_text</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#method-gtkselectiondata--tree-set-row-drag-data" title="gtk.SelectionData.tree_set_row_drag_data">tree_set_row_drag_data</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>tree_model</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>path</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#method-gtkselectiondata--tree-get-row-drag-data" title="gtk.SelectionData.tree_get_row_drag_data">tree_get_row_drag_data</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#method-gtkselectiondata--set-pixbuf" title="gtk.SelectionData.set_pixbuf">set_pixbuf</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#method-gtkselectiondata--get-pixbuf" title="gtk.SelectionData.get_pixbuf">get_pixbuf</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#method-gtkselectiondata--set-uris" title="gtk.SelectionData.set_uris">set_uris</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>uris</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#method-gtkselectiondata--get-uris" title="gtk.SelectionData.get_uris">get_uris</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#method-gtkselectiondata--targets-include-image" title="gtk.SelectionData.targets_include_image">targets_include_image</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>writable</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#method-gtkselectiondata--targets-include-rich-text" title="gtk.SelectionData.targets_include_rich_text">targets_include_rich_text</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#method-gtkselectiondata--targets-include-uri" title="gtk.SelectionData.targets_include_uri">targets_include_uri</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#method-gtkselectiondata--get-data-type" title="gtk.SelectionData.get_data_type">get_data_type</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#method-gtkselectiondata--get-display" title="gtk.SelectionData.get_display">get_display</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#method-gtkselectiondata--get-format" title="gtk.SelectionData.get_format">get_format</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#method-gtkselectiondata--get-length" title="gtk.SelectionData.get_length">get_length</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#method-gtkselectiondata--get-target" title="gtk.SelectionData.get_targets">get_target</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table><pre class="programlisting">
4
4
<span class="bold"><strong>Functions</strong></span>
5
5
 
6
6
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#function-gtk--selection-owner-set-for-display" title="gtk.selection_owner_set_for_display">gtk.selection_owner_set_for_display</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>display</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>selection</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>time</code></strong></span><span class="initializer">=0</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#function-gtk--target-list-add-image-targets" title="gtk.target_list_add_image_targets">gtk.target_list_add_image_targets</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>list</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>info</code></strong></span><span class="initializer">=0</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>writable</code></strong></span><span class="initializer">=False</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#function-gtk--target-list-add-text-targets" title="gtk.target_list_add_text_targets">gtk.target_list_add_text_targets</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>list</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>info</code></strong></span><span class="initializer">=0</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#function-gtk--target-list-add-uri-targets" title="gtk.target_list_add_uri_targets">gtk.target_list_add_uri_targets</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>list</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>info</code></strong></span><span class="initializer">=0</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#function-gtk--target-list-add-rich-text-targets" title="gtk.target_list_add_rich_text_targets">gtk.target_list_add_rich_text_targets</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>list</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>info</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>deserializable</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#function-gtk--targets-include-image" title="gtk.targets_include_image">gtk.targets_include_image</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>targets</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>writable</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#function-gtk--targets-include-rich-text" title="gtk.targets_include_rich_text">gtk.targets_include_rich_text</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>targets</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#function-gtk--targets-include-text" title="gtk.targets_include_text">gtk.targets_include_text</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>targets</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#function-gtk--targets-include-uri" title="gtk.targets_include_uri">gtk.targets_include_uri</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>targets</code></strong></span></span>)</code>
7
 
</pre></div><div class="refsect1" lang="en"><a name="id3674920"></a><h2>Attributes</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table cellpadding="5" width="100%" border="0"><colgroup><col><col><col></colgroup><tbody><tr valign="top"><td valign="top">"selection"</td><td valign="top">Read</td><td valign="top">A <a class="link" href="class-gdkatom.html" title="gtk.gdk.Atom"><code class="classname">gtk.gdk.Atom</code></a> indicating the selection type (e.g. "PRIMARY").</td></tr><tr valign="top"><td valign="top">"target"</td><td valign="top">Read</td><td valign="top">A <a class="link" href="class-gdkatom.html" title="gtk.gdk.Atom"><code class="classname">gtk.gdk.Atom</code></a> indicating the selection target type (e.g. "TARGETS").</td></tr><tr valign="top"><td valign="top">"type"</td><td valign="top">Read</td><td valign="top">A <a class="link" href="class-gdkatom.html" title="gtk.gdk.Atom"><code class="classname">gtk.gdk.Atom</code></a> indicating the selection data type (e.g. "STRING").</td></tr><tr valign="top"><td valign="top">"format"</td><td valign="top">Read</td><td valign="top">The unit length of the data in bits (e.g. 8 for a
8
 
string or 32 of an integer).</td></tr><tr valign="top"><td valign="top">"data"</td><td valign="top">Read</td><td valign="top">The data as a string.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="id3675086"></a><h2>Description</h2><p>A <a class="link" href="class-gtkselectiondata.html" title="gtk.SelectionData"><code class="classname">gtk.SelectionData</code></a> 
 
7
</pre></div><div class="refsect1" title="Attributes"><a name="id3984899"></a><h2>Attributes</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table cellpadding="5" width="100%" border="0"><colgroup><col width="1in"><col width="1in"><col width="4in"></colgroup><tbody><tr valign="top"><td valign="top">"selection"</td><td valign="top">Read</td><td valign="top">A <a class="link" href="class-gdkatom.html" title="gtk.gdk.Atom"><code class="classname">gtk.gdk.Atom</code></a> indicating the selection type (e.g. "PRIMARY").</td></tr><tr valign="top"><td valign="top">"target"</td><td valign="top">Read</td><td valign="top">A <a class="link" href="class-gdkatom.html" title="gtk.gdk.Atom"><code class="classname">gtk.gdk.Atom</code></a> indicating the selection target type (e.g. "TARGETS").</td></tr><tr valign="top"><td valign="top">"type"</td><td valign="top">Read</td><td valign="top">A <a class="link" href="class-gdkatom.html" title="gtk.gdk.Atom"><code class="classname">gtk.gdk.Atom</code></a> indicating the selection data type (e.g. "STRING").</td></tr><tr valign="top"><td valign="top">"format"</td><td valign="top">Read</td><td valign="top">The unit length of the data in bits (e.g. 8 for a
 
8
string or 32 of an integer).</td></tr><tr valign="top"><td valign="top">"data"</td><td valign="top">Read</td><td valign="top">The data as a string.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="Description"><a name="id3985066"></a><h2>Description</h2><p>A <a class="link" href="class-gtkselectiondata.html" title="gtk.SelectionData"><code class="classname">gtk.SelectionData</code></a> 
9
9
object is used to store information about a chunk of data associated with a
10
10
selection. In PyGTK the selection data is always a string so the application
11
11
will have to provide functions to convert the data to and from a string to
13
13
types are directly supported using the <a class="link" href="class-gtkselectiondata.html#method-gtkselectiondata--set-text" title="gtk.SelectionData.set_text"><code class="methodname">set_text</code>()</a>, 
14
14
<a class="link" href="class-gtkselectiondata.html#method-gtkselectiondata--get-text" title="gtk.SelectionData.get_text"><code class="methodname">get_text</code>()</a> 
15
15
and <a class="link" href="class-gtkselectiondata.html#method-gtkselectiondata--get-targets" title="gtk.SelectionData.get_targets"><code class="methodname">get_targets</code>()</a> 
16
 
methods.</p></div><div class="refsect1" lang="en"><a name="id3675137"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkselectiondata--set"></a><h3>gtk.SelectionData.set</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set</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>format</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>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>a <a class="link" href="class-gdkatom.html" title="gtk.gdk.Atom"><code class="classname">gtk.gdk.Atom</code></a> or string
 
16
methods.</p></div><div class="refsect1" title="Methods"><a name="id3985117"></a><h2>Methods</h2><div class="refsect2" title="gtk.SelectionData.set"><a name="method-gtkselectiondata--set"></a><h3>gtk.SelectionData.set</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set</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>format</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>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>a <a class="link" href="class-gdkatom.html" title="gtk.gdk.Atom"><code class="classname">gtk.gdk.Atom</code></a> or string
17
17
that specifies a <a class="link" href="class-gdkatom.html" title="gtk.gdk.Atom"><code class="classname">gtk.gdk.Atom</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>format</code></strong> :</span></p></td><td>the number of bits in a
18
18
unit</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>data</code></strong> :</span></p></td><td>a string containing the
19
19
data</td></tr></tbody></table><p>The <code class="methodname">set</code>() method sets the data for a
22
22
set; <em class="parameter"><code>format</code></em> is the number of bits in a unit of the
23
23
data (e.g. integer data has a format of 32 on most systems; string data
24
24
format is 8); and, <em class="parameter"><code>type</code></em> is a <a class="link" href="class-gdkatom.html" title="gtk.gdk.Atom"><code class="classname">gtk.gdk.Atom</code></a> or a
25
 
string that specifies a <a class="link" href="class-gdkatom.html" title="gtk.gdk.Atom"><code class="classname">gtk.gdk.Atom</code></a>.</p></div><div class="refsect2" lang="en"><a name="method-gtkselectiondata--set-text"></a><h3>gtk.SelectionData.set_text</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_text</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>str</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>len</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>str</code></strong> :</span></p></td><td>a string</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>len</code></strong> :</span></p></td><td>the length of <em class="parameter"><code>str</code></em>, or -1
 
25
string that specifies a <a class="link" href="class-gdkatom.html" title="gtk.gdk.Atom"><code class="classname">gtk.gdk.Atom</code></a>.</p></div><div class="refsect2" title="gtk.SelectionData.set_text"><a name="method-gtkselectiondata--set-text"></a><h3>gtk.SelectionData.set_text</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_text</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>str</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>len</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>str</code></strong> :</span></p></td><td>a string</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>len</code></strong> :</span></p></td><td>the length of <em class="parameter"><code>str</code></em>, or -1
26
26
if <em class="parameter"><code>str</code></em> for the full length.</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 selection was
27
27
successfully set; otherwise, <code class="literal">False</code>.</td></tr></tbody></table><p>The <code class="methodname">set_text</code>() method sets the contents
28
28
of the selection from the string specified by <em class="parameter"><code>str</code></em>.
29
29
The string is converted to the form specified by the
30
30
<code class="literal">selection_data.target</code> attribute. This method returns True
31
 
if the selection data was successfully set.</p></div><div class="refsect2" lang="en"><a name="method-gtkselectiondata--get-text"></a><h3>gtk.SelectionData.get_text</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_text</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 string containing the converted text, or
 
31
if the selection data was successfully set.</p></div><div class="refsect2" title="gtk.SelectionData.get_text"><a name="method-gtkselectiondata--get-text"></a><h3>gtk.SelectionData.get_text</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_text</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 string containing the converted text, or
32
32
<code class="literal">None</code>.</td></tr></tbody></table><p>The <code class="methodname">get_text</code>() method returns the
33
 
contents of the selection data as a string.</p></div><div class="refsect2" lang="en"><a name="method-gtkselectiondata--get-targets"></a><h3>gtk.SelectionData.get_targets</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_targets</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 tuple containing a list of targets (<a class="link" href="class-gdkatom.html" title="gtk.gdk.Atom"><code class="classname">gtk.gdk.Atom</code></a>s) or
 
33
contents of the selection data as a string.</p></div><div class="refsect2" title="gtk.SelectionData.get_targets"><a name="method-gtkselectiondata--get-targets"></a><h3>gtk.SelectionData.get_targets</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_targets</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 tuple containing a list of targets (<a class="link" href="class-gdkatom.html" title="gtk.gdk.Atom"><code class="classname">gtk.gdk.Atom</code></a>s) or
34
34
<code class="literal">None</code> if no valid targets are
35
35
available.</td></tr></tbody></table><p>The <code class="methodname">get_targets</code>() method returns a
36
36
tuple containing a list of valid targets for the selection as a list of
37
37
<a class="link" href="class-gdkatom.html" title="gtk.gdk.Atom"><code class="classname">gtk.gdk.Atom</code></a>s or
38
 
None if there are no valid targets.</p></div><div class="refsect2" lang="en"><a name="method-gtkselectiondata--targets-include-text"></a><h3>gtk.SelectionData.targets_include_text</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">targets_include_text</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 selection data
 
38
None if there are no valid targets.</p></div><div class="refsect2" title="gtk.SelectionData.targets_include_text"><a name="method-gtkselectiondata--targets-include-text"></a><h3>gtk.SelectionData.targets_include_text</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">targets_include_text</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 selection data
39
39
holds a list of targets, and a suitable target for text is
40
40
included.</td></tr></tbody></table><p>The <code class="methodname">targets_include_text</code>() method
41
41
returns <code class="literal">True</code> if any of the selection data targets can be
42
 
used to provide text.</p></div><div class="refsect2" lang="en"><a name="method-gtkselectiondata--tree-set-row-drag-data"></a><h3>gtk.SelectionData.tree_set_row_drag_data</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">tree_set_row_drag_data</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>tree_model</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>path</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>tree_model</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktreemodel.html" title="gtk.TreeModel"><code class="classname">gtk.TreeModel</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>path</code></strong> :</span></p></td><td>a row in
 
42
used to provide text.</p></div><div class="refsect2" title="gtk.SelectionData.tree_set_row_drag_data"><a name="method-gtkselectiondata--tree-set-row-drag-data"></a><h3>gtk.SelectionData.tree_set_row_drag_data</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">tree_set_row_drag_data</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>tree_model</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>path</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>tree_model</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktreemodel.html" title="gtk.TreeModel"><code class="classname">gtk.TreeModel</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>path</code></strong> :</span></p></td><td>a row in
43
43
<em class="parameter"><code>tree_model</code></em></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 <a class="link" href="class-gtkselectiondata.html" title="gtk.SelectionData"><code class="classname">gtk.SelectionData</code></a> 
44
44
had the proper target type to allow us to set a tree
45
45
row</td></tr></tbody></table><p>The <code class="methodname">tree_set_row_drag_data</code>() method
46
46
sets the selection data of target type <code class="literal">GTK_TREE_MODEL_ROW</code>
47
47
for the row (specified by <em class="parameter"><code>path</code></em>) in the <a class="link" href="class-gtktreemodel.html" title="gtk.TreeModel"><code class="classname">gtk.TreeModel</code></a>
48
48
(specified by tree_model). Normally used in a "<a class="link" href="class-gtkwidget.html#signal-gtkwidget--drag-data-get" title='The "drag-data-get" gtk.Widget Signal'>drag-data-get</a>" signal
49
 
handler.</p></div><div class="refsect2" lang="en"><a name="method-gtkselectiondata--tree-get-row-drag-data"></a><h3>gtk.SelectionData.tree_get_row_drag_data</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">tree_get_row_drag_data</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 tuple containing a <a class="link" href="class-gtktreemodel.html" title="gtk.TreeModel"><code class="classname">gtk.TreeModel</code></a> and
 
49
handler.</p></div><div class="refsect2" title="gtk.SelectionData.tree_get_row_drag_data"><a name="method-gtkselectiondata--tree-get-row-drag-data"></a><h3>gtk.SelectionData.tree_get_row_drag_data</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">tree_get_row_drag_data</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 tuple containing a <a class="link" href="class-gtktreemodel.html" title="gtk.TreeModel"><code class="classname">gtk.TreeModel</code></a> and
50
50
one of its rows.</td></tr></tbody></table><p>The <code class="methodname">tree_get_row_drag_data</code>() method
51
51
returns a tuple containing a <a class="link" href="class-gtktreemodel.html" title="gtk.TreeModel"><code class="classname">gtk.TreeModel</code></a> and
52
52
a row from that <a class="link" href="class-gtktreemodel.html" title="gtk.TreeModel"><code class="classname">gtk.TreeModel</code></a>
56
56
originates from the same process that's calling this method, because a
57
57
pointer to the tree model is being passed around. In the "<a class="link" href="class-gtkwidget.html#signal-gtkwidget--drag-data-received" title='The "drag-data-received" gtk.Widget Signal'>drag-data-received</a>"
58
58
signal handler, you can assume that selection data of type
59
 
<code class="literal">"GTK_TREE_MODEL_ROW"</code> is from the current process.</p></div><div class="refsect2" lang="en"><a name="method-gtkselectiondata--set-pixbuf"></a><h3>gtk.SelectionData.set_pixbuf</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_pixbuf</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf</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>pixbuf</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkpixbuf.html" title="gtk.gdk.Pixbuf"><code class="classname">gtk.gdk.Pixbuf</code></a></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 selection was
60
 
successfully set; otherwise, <code class="literal">False</code>.</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.6 and above.</p></div><p>The <code class="methodname">set_pixbuf</code>() method sets the
 
59
<code class="literal">"GTK_TREE_MODEL_ROW"</code> is from the current process.</p></div><div class="refsect2" title="gtk.SelectionData.set_pixbuf"><a name="method-gtkselectiondata--set-pixbuf"></a><h3>gtk.SelectionData.set_pixbuf</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_pixbuf</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf</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>pixbuf</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkpixbuf.html" title="gtk.gdk.Pixbuf"><code class="classname">gtk.gdk.Pixbuf</code></a></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 selection was
 
60
successfully set; otherwise, <code class="literal">False</code>.</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.6 and above.</p></div><p>The <code class="methodname">set_pixbuf</code>() method sets the
61
61
contents of the selection from the <a class="link" href="class-gdkpixbuf.html" title="gtk.gdk.Pixbuf"><code class="classname">gtk.gdk.Pixbuf</code></a>
62
62
specified by <em class="parameter"><code>pixbuf</code></em>. This method returns
63
 
<code class="literal">True</code> if the selection data was successfully set.</p></div><div class="refsect2" lang="en"><a name="method-gtkselectiondata--get-pixbuf"></a><h3>gtk.SelectionData.get_pixbuf</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_pixbuf</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>if the selection data contained a recognized
 
63
<code class="literal">True</code> if the selection data was successfully set.</p></div><div class="refsect2" title="gtk.SelectionData.get_pixbuf"><a name="method-gtkselectiondata--get-pixbuf"></a><h3>gtk.SelectionData.get_pixbuf</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_pixbuf</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>if the selection data contained a recognized
64
64
image type and it could be converted to a <a class="link" href="class-gdkpixbuf.html" title="gtk.gdk.Pixbuf"><code class="classname">gtk.gdk.Pixbuf</code></a>, a
65
65
newly allocated pixbuf is returned, or
66
 
<code class="literal">None</code>.</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.6 and above.</p></div><p>The <code class="methodname">get_pixbuf</code>() method returns the
 
66
<code class="literal">None</code>.</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.6 and above.</p></div><p>The <code class="methodname">get_pixbuf</code>() method returns the
67
67
contents of the selection data as a <a class="link" href="class-gdkpixbuf.html" title="gtk.gdk.Pixbuf"><code class="classname">gtk.gdk.Pixbuf</code></a> if
68
 
possible.</p></div><div class="refsect2" lang="en"><a name="method-gtkselectiondata--set-uris"></a><h3>gtk.SelectionData.set_uris</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_uris</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>uris</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>uris</code></strong> :</span></p></td><td>a list of strings holding
 
68
possible.</p></div><div class="refsect2" title="gtk.SelectionData.set_uris"><a name="method-gtkselectiondata--set-uris"></a><h3>gtk.SelectionData.set_uris</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_uris</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>uris</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>uris</code></strong> :</span></p></td><td>a list of strings holding
69
69
URIs</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 selection was
70
 
successfully set; otherwise, <code class="literal">False</code>.</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.6 and above.</p></div><p>The <code class="methodname">set_uris</code>() method sets the contents
 
70
successfully set; otherwise, <code class="literal">False</code>.</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.6 and above.</p></div><p>The <code class="methodname">set_uris</code>() method sets the contents
71
71
of the selection from the list of URIs specified by
72
72
<em class="parameter"><code>uris</code></em>. This method returns <code class="literal">True</code> if
73
 
the selection data was successfully set.</p></div><div class="refsect2" lang="en"><a name="method-gtkselectiondata--get-uris"></a><h3>gtk.SelectionData.get_uris</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_uris</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 list of URIs, or
74
 
<code class="literal">None</code>.</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.6 and above.</p></div><p>The <code class="methodname">get_uris</code>() method returns the
75
 
contents of the selection data as a list of URIs.</p></div><div class="refsect2" lang="en"><a name="method-gtkselectiondata--targets-include-image"></a><h3>gtk.SelectionData.targets_include_image</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">targets_include_image</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>writable</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>writable</code></strong> :</span></p></td><td>If <code class="literal">True</code> only accept targets
 
73
the selection data was successfully set.</p></div><div class="refsect2" title="gtk.SelectionData.get_uris"><a name="method-gtkselectiondata--get-uris"></a><h3>gtk.SelectionData.get_uris</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_uris</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 list of URIs, or
 
74
<code class="literal">None</code>.</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.6 and above.</p></div><p>The <code class="methodname">get_uris</code>() method returns the
 
75
contents of the selection data as a list of URIs.</p></div><div class="refsect2" title="gtk.SelectionData.targets_include_image"><a name="method-gtkselectiondata--targets-include-image"></a><h3>gtk.SelectionData.targets_include_image</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">targets_include_image</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>writable</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>writable</code></strong> :</span></p></td><td>If <code class="literal">True</code> only accept targets
76
76
that GTK+ can convert a <a class="link" href="class-gdkpixbuf.html" title="gtk.gdk.Pixbuf"><code class="classname">gtk.gdk.Pixbuf</code></a>
77
77
to.</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 selection has a
78
 
list of targets that includes an image target.</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.6 and above.</p></div><p>The <code class="methodname">targets_include_image</code>() method
 
78
list of targets that includes an image target.</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.6 and above.</p></div><p>The <code class="methodname">targets_include_image</code>() method
79
79
returns <code class="literal">True</code> if the selection targets include an image
80
 
target.</p></div><div class="refsect2" lang="en"><a name="method-gtkselectiondata--targets-include-rich-text"></a><h3>gtk.SelectionData.targets_include_rich_text</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">targets_include_rich_text</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer</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>buffer</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a></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 a suitable target
 
80
target.</p></div><div class="refsect2" title="gtk.SelectionData.targets_include_rich_text"><a name="method-gtkselectiondata--targets-include-rich-text"></a><h3>gtk.SelectionData.targets_include_rich_text</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">targets_include_rich_text</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer</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>buffer</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a></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 a suitable target
81
81
          for rich text is included in the selectiondata
82
 
          targets.</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>Determines if any of the selectiondata targets can be used to
83
 
      provide rich text.</p></div><div class="refsect2" lang="en"><a name="method-gtkselectiondata--targets-include-uri"></a><h3>gtk.SelectionData.targets_include_uri</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">targets_include_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><code class="literal">True</code> if a suitable target
 
82
          targets.</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>Determines if any of the selectiondata targets can be used to
 
83
      provide rich text.</p></div><div class="refsect2" title="gtk.SelectionData.targets_include_uri"><a name="method-gtkselectiondata--targets-include-uri"></a><h3>gtk.SelectionData.targets_include_uri</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">targets_include_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><code class="literal">True</code> if a suitable target
84
84
          for uris is included in the selectiondata
85
 
          targets.</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>Determines if any of the selectiondata targets can be used to
86
 
      provide a list of URIs.</p></div><div class="refsect2" lang="en"><a name="method-gtkselectiondata--get-data-type"></a><h3>gtk.SelectionData.get_data_type</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_data_type</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 data type of the selection.</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>Retrieves the data type of the selection.</p></div><div class="refsect2" lang="en"><a name="method-gtkselectiondata--get-display"></a><h3>gtk.SelectionData.get_display</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_display</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 display of the selection.</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>Retrieves the display of the selection.</p></div><div class="refsect2" lang="en"><a name="method-gtkselectiondata--get-format"></a><h3>gtk.SelectionData.get_format</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_format</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 format of the selection.</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>Retrieves the format of the selection.</p></div><div class="refsect2" lang="en"><a name="method-gtkselectiondata--get-length"></a><h3>gtk.SelectionData.get_length</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_length</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 length of the data of the selection.</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>Retrieves the length of the data of the selection.</p></div><div class="refsect2" lang="en"><a name="method-gtkselectiondata--get-target"></a><h3>gtk.SelectionData.get_targets</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_target</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 target of the selection.</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>Retrieves the target of the selection.</p></div></div><div class="refsect1" lang="en"><a name="id3677022"></a><h2>Functions</h2><div class="refsect2" lang="en"><a name="function-gtk--selection-owner-set-for-display"></a><h3>gtk.selection_owner_set_for_display</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.selection_owner_set_for_display</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>display</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>selection</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>time</code></strong></span><span class="initializer">=0</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>display</code></strong> :</span></p></td><td> the <a class="link" href="class-gdkdisplay.html" title="gtk.gdk.Display"><code class="classname">gtk.gdk.Display</code></a>
 
85
          targets.</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>Determines if any of the selectiondata targets can be used to
 
86
      provide a list of URIs.</p></div><div class="refsect2" title="gtk.SelectionData.get_data_type"><a name="method-gtkselectiondata--get-data-type"></a><h3>gtk.SelectionData.get_data_type</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_data_type</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 data type of the selection.</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>Retrieves the data type of the selection.</p></div><div class="refsect2" title="gtk.SelectionData.get_display"><a name="method-gtkselectiondata--get-display"></a><h3>gtk.SelectionData.get_display</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_display</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 display of the selection.</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>Retrieves the display of the selection.</p></div><div class="refsect2" title="gtk.SelectionData.get_format"><a name="method-gtkselectiondata--get-format"></a><h3>gtk.SelectionData.get_format</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_format</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 format of the selection.</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>Retrieves the format of the selection.</p></div><div class="refsect2" title="gtk.SelectionData.get_length"><a name="method-gtkselectiondata--get-length"></a><h3>gtk.SelectionData.get_length</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_length</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 length of the data of the selection.</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>Retrieves the length of the data of the selection.</p></div><div class="refsect2" title="gtk.SelectionData.get_targets"><a name="method-gtkselectiondata--get-target"></a><h3>gtk.SelectionData.get_targets</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_target</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 target of the selection.</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>Retrieves the target of the selection.</p></div></div><div class="refsect1" title="Functions"><a name="id3987002"></a><h2>Functions</h2><div class="refsect2" title="gtk.selection_owner_set_for_display"><a name="function-gtk--selection-owner-set-for-display"></a><h3>gtk.selection_owner_set_for_display</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.selection_owner_set_for_display</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>display</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>selection</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>time</code></strong></span><span class="initializer">=0</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>display</code></strong> :</span></p></td><td> the <a class="link" href="class-gdkdisplay.html" title="gtk.gdk.Display"><code class="classname">gtk.gdk.Display</code></a>
87
87
          where the selection is set</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>the new selection owner (a <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a>),
88
88
          or <code class="literal">None</code>.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>selection</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkatom.html" title="gtk.gdk.Atom"><code class="classname">gtk.gdk.Atom</code></a>
89
89
          or string representing a selection target</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>time</code></strong> :</span></p></td><td>the timestamp used to claim the
94
94
<em class="parameter"><code>widget</code></em> on the <a class="link" href="class-gdkdisplay.html" title="gtk.gdk.Display"><code class="classname">gtk.gdk.Display</code></a>
95
95
specified by <em class="parameter"><code>display</code></em>. If
96
96
<em class="parameter"><code>widget</code></em> is <code class="literal">None</code>, the ownership of
97
 
the selection is released.</p></div><div class="refsect2" lang="en"><a name="function-gtk--target-list-add-image-targets"></a><h3>gtk.target_list_add_image_targets</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.target_list_add_image_targets</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>list</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>info</code></strong></span><span class="initializer">=0</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>writable</code></strong></span><span class="initializer">=False</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>list</code></strong> :</span></p></td><td>A sequence of target entry tuples or
 
97
the selection is released.</p></div><div class="refsect2" title="gtk.target_list_add_image_targets"><a name="function-gtk--target-list-add-image-targets"></a><h3>gtk.target_list_add_image_targets</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.target_list_add_image_targets</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>list</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>info</code></strong></span><span class="initializer">=0</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>writable</code></strong></span><span class="initializer">=False</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>list</code></strong> :</span></p></td><td>A sequence of target entry tuples or
98
98
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>info</code></strong> :</span></p></td><td>an application specified ID that will be
99
99
passed back to the application</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>writable</code></strong> :</span></p></td><td>If <code class="literal">True</code>, only add targets
100
100
for image formats that a pixbuf can be converted to.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new list concatenating
101
101
<em class="parameter"><code>list</code></em> and the built-in image targets supported by
102
 
<a class="link" href="class-gtkselectiondata.html" title="gtk.SelectionData"><code class="classname">gtk.SelectionData</code></a>.</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.6 and above.</p></div><p>The <code class="function">gtk.target_list_add_image_targets</code>()
 
102
<a class="link" href="class-gtkselectiondata.html" title="gtk.SelectionData"><code class="classname">gtk.SelectionData</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 function is available in PyGTK 2.6 and above.</p></div><p>The <code class="function">gtk.target_list_add_image_targets</code>()
103
103
function adds the image target tuples supported by <a class="link" href="class-gtkselectiondata.html" title="gtk.SelectionData"><code class="classname">gtk.SelectionData</code></a>
104
104
to the list of target entry tuples specified by
105
105
<em class="parameter"><code>list</code></em>. <code class="literal">info</code> is used as the info
106
 
field of the target entry tuples.</p></div><div class="refsect2" lang="en"><a name="function-gtk--target-list-add-text-targets"></a><h3>gtk.target_list_add_text_targets</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.target_list_add_text_targets</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>list</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>info</code></strong></span><span class="initializer">=0</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>list</code></strong> :</span></p></td><td>A sequence of target entry tuples or
 
106
field of the target entry tuples.</p></div><div class="refsect2" title="gtk.target_list_add_text_targets"><a name="function-gtk--target-list-add-text-targets"></a><h3>gtk.target_list_add_text_targets</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.target_list_add_text_targets</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>list</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>info</code></strong></span><span class="initializer">=0</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>list</code></strong> :</span></p></td><td>A sequence of target entry tuples or
107
107
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>info</code></strong> :</span></p></td><td>an application specified ID that will be
108
108
passed back to the application</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new list concatenating
109
109
<em class="parameter"><code>list</code></em> and the built-in text targets supported by
110
 
<a class="link" href="class-gtkselectiondata.html" title="gtk.SelectionData"><code class="classname">gtk.SelectionData</code></a>.</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.6 and above.</p></div><p>The <code class="function">gtk.target_list_add_text_targets</code>()
 
110
<a class="link" href="class-gtkselectiondata.html" title="gtk.SelectionData"><code class="classname">gtk.SelectionData</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 function is available in PyGTK 2.6 and above.</p></div><p>The <code class="function">gtk.target_list_add_text_targets</code>()
111
111
function adds the text target tuples supported by <a class="link" href="class-gtkselectiondata.html" title="gtk.SelectionData"><code class="classname">gtk.SelectionData</code></a>
112
112
to the list of target entry tuples specified by
113
113
<em class="parameter"><code>list</code></em>. <code class="literal">info</code> is used as the info
114
 
field of the target entry tuples.</p></div><div class="refsect2" lang="en"><a name="function-gtk--target-list-add-uri-targets"></a><h3>gtk.target_list_add_uri_targets</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.target_list_add_uri_targets</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>list</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>info</code></strong></span><span class="initializer">=0</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>list</code></strong> :</span></p></td><td>A sequence of target entry tuples or
 
114
field of the target entry tuples.</p></div><div class="refsect2" title="gtk.target_list_add_uri_targets"><a name="function-gtk--target-list-add-uri-targets"></a><h3>gtk.target_list_add_uri_targets</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.target_list_add_uri_targets</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>list</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>info</code></strong></span><span class="initializer">=0</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>list</code></strong> :</span></p></td><td>A sequence of target entry tuples or
115
115
<code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>info</code></strong> :</span></p></td><td>an application specified ID that will be
116
116
passed back to the application</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new list concatenating
117
117
<em class="parameter"><code>list</code></em> and the built-in URI targets supported by
118
 
<a class="link" href="class-gtkselectiondata.html" title="gtk.SelectionData"><code class="classname">gtk.SelectionData</code></a>.</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.6 and above.</p></div><p>The <code class="function">gtk.target_list_add_uri_targets</code>()
 
118
<a class="link" href="class-gtkselectiondata.html" title="gtk.SelectionData"><code class="classname">gtk.SelectionData</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 function is available in PyGTK 2.6 and above.</p></div><p>The <code class="function">gtk.target_list_add_uri_targets</code>()
119
119
function adds the URI target tuples supported by <a class="link" href="class-gtkselectiondata.html" title="gtk.SelectionData"><code class="classname">gtk.SelectionData</code></a>
120
120
to the list of target entry tuple specified by
121
121
<em class="parameter"><code>list</code></em>. <code class="literal">info</code> is used as the info
122
 
field of the target entry tuples.</p></div><div class="refsect2" lang="en"><a name="function-gtk--targets-include-uri"></a><h3>gtk.targets_include_uri</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.targets_include_uri</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>targets</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>targets</code></strong> :</span></p></td><td>a list of target strings</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 targets includes a
123
 
          uri target.</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>Determines if any of the targets in
 
122
field of the target entry tuples.</p></div><div class="refsect2" title="gtk.targets_include_uri"><a name="function-gtk--targets-include-uri"></a><h3>gtk.targets_include_uri</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.targets_include_uri</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>targets</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>targets</code></strong> :</span></p></td><td>a list of target strings</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 targets includes a
 
123
          uri target.</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>Determines if any of the targets in
124
124
      <em class="parameter"><code>targets</code></em> can be used to provide an uri
125
 
      list.</p></div><div class="refsect2" lang="en"><a name="function-gtk--targets-include-text"></a><h3>gtk.targets_include_text</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.targets_include_text</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>targets</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>targets</code></strong> :</span></p></td><td>a list of target strings</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 targets includes a
126
 
          text target.</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>Determines if any of the targets in
127
 
      <em class="parameter"><code>targets</code></em> can be used to provide text.</p></div><div class="refsect2" lang="en"><a name="function-gtk--targets-include-rich-text"></a><h3>gtk.targets_include_rich_text</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.targets_include_rich_text</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>targets</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer</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>targets</code></strong> :</span></p></td><td>a list of target strings</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>buffer</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td></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>Determines if any of the targets in
 
125
      list.</p></div><div class="refsect2" title="gtk.targets_include_text"><a name="function-gtk--targets-include-text"></a><h3>gtk.targets_include_text</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.targets_include_text</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>targets</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>targets</code></strong> :</span></p></td><td>a list of target strings</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 targets includes a
 
126
          text target.</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>Determines if any of the targets in
 
127
      <em class="parameter"><code>targets</code></em> can be used to provide text.</p></div><div class="refsect2" title="gtk.targets_include_rich_text"><a name="function-gtk--targets-include-rich-text"></a><h3>gtk.targets_include_rich_text</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.targets_include_rich_text</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>targets</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer</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>targets</code></strong> :</span></p></td><td>a list of target strings</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>buffer</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td></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>Determines if any of the targets in
128
128
      <em class="parameter"><code>targets</code></em> can be used to provide rich
129
 
      text.</p></div><div class="refsect2" lang="en"><a name="function-gtk--targets-include-image"></a><h3>gtk.targets_include_image</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.targets_include_image</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>targets</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>writable</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>targets</code></strong> :</span></p></td><td>a list of target strings</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>writable</code></strong> :</span></p></td><td>if <code class="literal">True</code> accept only targets
 
129
      text.</p></div><div class="refsect2" title="gtk.targets_include_image"><a name="function-gtk--targets-include-image"></a><h3>gtk.targets_include_image</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.targets_include_image</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>targets</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>writable</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>targets</code></strong> :</span></p></td><td>a list of target strings</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>writable</code></strong> :</span></p></td><td>if <code class="literal">True</code> accept only targets
130
130
          for which GTK+ knows how to convert a pixbuf into the
131
131
          format</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
132
132
          <em class="parameter"><code>targets</code></em> include a suitable target for
133
 
          images</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>Determines if any of the targets in targets can be used to
134
 
      provide a <a class="link" href="class-gdkpixbuf.html" title="gtk.gdk.Pixbuf"><code class="classname">gtk.gdk.Pixbuf</code></a>.</p></div><div class="refsect2" lang="en"><a name="function-gtk--target-list-add-rich-text-targets"></a><h3>gtk.target_list_add_rich_text_targets</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.target_list_add_rich_text_targets</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>list</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>info</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>deserializable</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer</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>list</code></strong> :</span></p></td><td>a list of targets</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>info</code></strong> :</span></p></td><td>an ID that will be passed back to the
 
133
          images</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>Determines if any of the targets in targets can be used to
 
134
      provide a <a class="link" href="class-gdkpixbuf.html" title="gtk.gdk.Pixbuf"><code class="classname">gtk.gdk.Pixbuf</code></a>.</p></div><div class="refsect2" title="gtk.target_list_add_rich_text_targets"><a name="function-gtk--target-list-add-rich-text-targets"></a><h3>gtk.target_list_add_rich_text_targets</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.target_list_add_rich_text_targets</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>list</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>info</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>deserializable</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer</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>list</code></strong> :</span></p></td><td>a list of targets</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>info</code></strong> :</span></p></td><td>an ID that will be passed back to the
135
135
          application</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>deserializable</code></strong> :</span></p></td><td>if <code class="literal">True</code>, deserializable rich
136
136
          text formats will be added, otherwise, serializable formats will
137
137
          be added.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>buffer</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a target list with the rich text targets
138
138
          registered with <em class="parameter"><code>buffer</code></em> appended to
139
 
          <em class="parameter"><code>list</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>Appends the rich text targets registered with the <a class="link" href="class-gtktextbuffer.html#method-gtktextbuffer--register-serialize-format" title="gtk.TextBuffer.register_serialize_format"><code class="methodname">register_serialize_format</code>()</a>
 
139
          <em class="parameter"><code>list</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>Appends the rich text targets registered with the <a class="link" href="class-gtktextbuffer.html#method-gtktextbuffer--register-serialize-format" title="gtk.TextBuffer.register_serialize_format"><code class="methodname">register_serialize_format</code>()</a>
140
140
      or <a class="link" href="class-gtktextbuffer.html#method-gtktextbuffer--register-deserialize-format" title="gtk.TextBuffer.register_deserialize_format"><code class="methodname">register_deserialize_format</code>()</a>
141
141
      methods to the target list. All targets are added with the same
142
142
      <em class="parameter"><code>info</code></em>.