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

« back to all changes in this revision

Viewing changes to docs/html/class-pangoattrlist.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>pango.AttrList</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="pango-class-reference.html" title="The pango Class Reference"><link rel="prev" href="class-pangoattriterator.html" title="pango.AttrIterator"><link rel="next" href="class-pangocolor.html" title="pango.Color"></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">pango.AttrList</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-pangoattriterator.html">Prev</a> </td><th width="60%" align="center">The pango Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-pangocolor.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-pangoattrlist"></a><div class="titlepage"></div><div class="refnamediv"><h2>pango.AttrList</h2><p>pango.AttrList — an object holding attributes that apply to a section of
2
 
text</p></div><div class="refsect1" lang="en"><a name="id3097466"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">pango.AttrList</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>pango.AttrList</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="pango-class-reference.html" title="The pango Class Reference"><link rel="prev" href="class-pangoattriterator.html" title="pango.AttrIterator"><link rel="next" href="class-pangocolor.html" title="pango.Color"></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">pango.AttrList</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-pangoattriterator.html">Prev</a> </td><th width="60%" align="center">The pango Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-pangocolor.html">Next</a></td></tr></table><hr></div><div class="refentry" title="pango.AttrList"><a name="class-pangoattrlist"></a><div class="titlepage"></div><div class="refnamediv"><h2>pango.AttrList</h2><p>pango.AttrList — an object holding attributes that apply to a section of
 
2
text</p></div><div class="refsect1" title="Synopsis"><a name="id3156965"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">pango.AttrList</span></span>(<span class="ooclass"><span class="classname">gobject.GBoxed</span></span>):
3
3
<code class="constructorsynopsis">    <span class="methodname"><a class="link" href="class-pangoattrlist.html#constructor-pangoattrlist" title="Constructor">pango.AttrList</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangoattrlist.html#method-pangoattrlist--copy" title="pango.AttrList.copy">copy</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangoattrlist.html#method-pangoattrlist--insert" title="pango.AttrList.insert">insert</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>attr</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangoattrlist.html#method-pangoattrlist--insert-before" title="pango.AttrList.insert_before">insert_before</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>attr</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangoattrlist.html#method-pangoattrlist--change" title="pango.AttrList.change">change</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>attr</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangoattrlist.html#method-pangoattrlist--splice" title="pango.AttrList.splice">splice</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>other</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>pos</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-pangoattrlist.html#method-pangoattrlist--get-iterator" title="pango.AttrList.get_iterator">get_iterator</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangoattrlist.html#method-pangoattrlist--filter" title="pango.AttrList.filter">filter</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><br></pre></td></tr></table><pre class="programlisting">
4
4
<span class="bold"><strong>Functions</strong></span>
5
5
 
6
 
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangoattrlist.html#function-pango--parse-markup" title="pango.parse_markup">pango.parse_markup</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>markup_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>accel_marker</code></strong></span><span class="initializer">=u'\x00'</span></span>)</code></pre></div><div class="refsect1" lang="en"><a name="id3109769"></a><h2>Description</h2><p>The <a class="link" href="class-pangoattrlist.html" title="pango.AttrList"><code class="classname">pango.AttrList</code></a>
 
6
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangoattrlist.html#function-pango--parse-markup" title="pango.parse_markup">pango.parse_markup</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>markup_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>accel_marker</code></strong></span><span class="initializer">=u'\x00'</span></span>)</code></pre></div><div class="refsect1" title="Description"><a name="id3064280"></a><h2>Description</h2><p>The <a class="link" href="class-pangoattrlist.html" title="pango.AttrList"><code class="classname">pango.AttrList</code></a>
7
7
object contains a list of attributes that apply to a section of text. The
8
8
attributes are, in general, allowed to overlap in an arbitrary fashion,
9
9
however, if the attributes are manipulated only through the <a class="link" href="class-pangoattrlist.html#method-pangoattrlist--change" title="pango.AttrList.change"><code class="methodname">change</code>()</a> 
11
11
the <a class="link" href="class-pangoattrlist.html" title="pango.AttrList"><code class="classname">pango.AttrList</code></a>
12
12
object is stored as a linear list, it is not suitable for storing attributes
13
13
for large amounts of text. In general, you should not use a single <a class="link" href="class-pangoattrlist.html" title="pango.AttrList"><code class="classname">pango.AttrList</code></a>
14
 
for more than one paragraph of text.</p></div><div class="refsect1" lang="en"><a name="constructor-pangoattrlist"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">pango.AttrList</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 new <a class="link" href="class-pangoattrlist.html" title="pango.AttrList"><code class="classname">pango.AttrList</code></a>
 
14
for more than one paragraph of text.</p></div><div class="refsect1" title="Constructor"><a name="constructor-pangoattrlist"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">pango.AttrList</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 new <a class="link" href="class-pangoattrlist.html" title="pango.AttrList"><code class="classname">pango.AttrList</code></a>
15
15
object.</td></tr></tbody></table><p>Creates a new <a class="link" href="class-pangoattrlist.html" title="pango.AttrList"><code class="classname">pango.AttrList</code></a>
16
 
object.</p></div><div class="refsect1" lang="en"><a name="id3281982"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-pangoattrlist--copy"></a><h3>pango.AttrList.copy</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">copy</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 new <a class="link" href="class-pangoattrlist.html" title="pango.AttrList"><code class="classname">pango.AttrList</code></a>
 
16
object.</p></div><div class="refsect1" title="Methods"><a name="id3202275"></a><h2>Methods</h2><div class="refsect2" title="pango.AttrList.copy"><a name="method-pangoattrlist--copy"></a><h3>pango.AttrList.copy</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">copy</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 new <a class="link" href="class-pangoattrlist.html" title="pango.AttrList"><code class="classname">pango.AttrList</code></a>
17
17
object</td></tr></tbody></table><p>The <code class="methodname">copy</code>() method returns
18
18
a new <a class="link" href="class-pangoattrlist.html" title="pango.AttrList"><code class="classname">pango.AttrList</code></a>
19
 
object that is a copy of the attribute list </p></div><div class="refsect2" lang="en"><a name="method-pangoattrlist--insert"></a><h3>pango.AttrList.insert</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">insert</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>attr</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>attr</code></strong> :</span></p></td><td>the <a class="link" href="class-pangoattribute.html" title="pango.Attribute"><code class="classname">pango.Attribute</code></a>
 
19
object that is a copy of the attribute list </p></div><div class="refsect2" title="pango.AttrList.insert"><a name="method-pangoattrlist--insert"></a><h3>pango.AttrList.insert</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">insert</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>attr</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>attr</code></strong> :</span></p></td><td>the <a class="link" href="class-pangoattribute.html" title="pango.Attribute"><code class="classname">pango.Attribute</code></a>
20
20
to insert.</td></tr></tbody></table><p>The <code class="methodname">insert</code>() method
21
21
inserts the <a class="link" href="class-pangoattribute.html" title="pango.Attribute"><code class="classname">pango.Attribute</code></a>
22
22
specified by <em class="parameter"><code>attr</code></em> into the attribute list. It will be
23
 
inserted after all other attributes with a matching "start_index".</p></div><div class="refsect2" lang="en"><a name="method-pangoattrlist--insert-before"></a><h3>pango.AttrList.insert_before</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">insert_before</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>attr</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>attr</code></strong> :</span></p></td><td>the <a class="link" href="class-pangoattribute.html" title="pango.Attribute"><code class="classname">pango.Attribute</code></a>
 
23
inserted after all other attributes with a matching "start_index".</p></div><div class="refsect2" title="pango.AttrList.insert_before"><a name="method-pangoattrlist--insert-before"></a><h3>pango.AttrList.insert_before</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">insert_before</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>attr</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>attr</code></strong> :</span></p></td><td>the <a class="link" href="class-pangoattribute.html" title="pango.Attribute"><code class="classname">pango.Attribute</code></a>
24
24
to insert.</td></tr></tbody></table><p>The <code class="methodname">insert_before</code>()
25
25
method inserts the <a class="link" href="class-pangoattribute.html" title="pango.Attribute"><code class="classname">pango.Attribute</code></a>
26
26
specified by attr into the attribute list. It will be inserted before all
27
 
other attributes with a matching "start_index".</p></div><div class="refsect2" lang="en"><a name="method-pangoattrlist--change"></a><h3>pango.AttrList.change</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">change</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>attr</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>attr</code></strong> :</span></p></td><td>the <a class="link" href="class-pangoattribute.html" title="pango.Attribute"><code class="classname">pango.Attribute</code></a>
 
27
other attributes with a matching "start_index".</p></div><div class="refsect2" title="pango.AttrList.change"><a name="method-pangoattrlist--change"></a><h3>pango.AttrList.change</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">change</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>attr</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>attr</code></strong> :</span></p></td><td>the <a class="link" href="class-pangoattribute.html" title="pango.Attribute"><code class="classname">pango.Attribute</code></a>
28
28
to insert.</td></tr></tbody></table><p>The <code class="methodname">change</code>() method
29
29
inserts the <a class="link" href="class-pangoattribute.html" title="pango.Attribute"><code class="classname">pango.Attribute</code></a>
30
30
specified by <em class="parameter"><code>attr</code></em> into the attribute list. It will
34
34
method for creating an attribute list in order (potentially much slower for
35
35
large lists). However, the <a class="link" href="class-pangoattrlist.html#method-pangoattrlist--insert" title="pango.AttrList.insert"><code class="function">insert()</code></a>
36
36
method is not suitable for continually changing a set of attributes since it
37
 
never removes or combines existing attributes.</p></div><div class="refsect2" lang="en"><a name="method-pangoattrlist--splice"></a><h3>pango.AttrList.splice</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">splice</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>other</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>pos</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>other</code></strong> :</span></p></td><td>another <a class="link" href="class-pangoattrlist.html" title="pango.AttrList"><code class="classname">pango.AttrList</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>pos</code></strong> :</span></p></td><td>the position in this attribute list to insert
 
37
never removes or combines existing attributes.</p></div><div class="refsect2" title="pango.AttrList.splice"><a name="method-pangoattrlist--splice"></a><h3>pango.AttrList.splice</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">splice</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>other</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>pos</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>other</code></strong> :</span></p></td><td>another <a class="link" href="class-pangoattrlist.html" title="pango.AttrList"><code class="classname">pango.AttrList</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>pos</code></strong> :</span></p></td><td>the position in this attribute list to insert
38
38
<em class="parameter"><code>other</code></em></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>len</code></strong> :</span></p></td><td>the length of the spliced segment. (Note that
39
39
this must be specified since the attributes in <em class="parameter"><code>other</code></em>
40
40
may only be present at some subsection of this range)</td></tr></tbody></table><p>The <code class="methodname">splice</code>() method
44
44
specified by <em class="parameter"><code>pos</code></em> in the list by the amount specified
45
45
by <em class="parameter"><code>len</code></em>, and then calls the <a class="link" href="class-pangoattrlist.html#method-pangoattrlist--change" title="pango.AttrList.change"><code class="methodname">change</code>()</a> 
46
46
method with a copy of each attribute in <em class="parameter"><code>other</code></em> in
47
 
sequence (offset in position by <em class="parameter"><code>pos</code></em>).</p></div><div class="refsect2" lang="en"><a name="method-pangoattrlist--get-iterator"></a><h3>pango.AttrList.get_iterator</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_iterator</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 new <a class="link" href="class-pangoattriterator.html" title="pango.AttrIterator"><code class="classname">pango.AttrIterator</code></a>.</td></tr></tbody></table><p>The <code class="methodname">get_iterator</code>() method creates and
 
47
sequence (offset in position by <em class="parameter"><code>pos</code></em>).</p></div><div class="refsect2" title="pango.AttrList.get_iterator"><a name="method-pangoattrlist--get-iterator"></a><h3>pango.AttrList.get_iterator</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_iterator</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 new <a class="link" href="class-pangoattriterator.html" title="pango.AttrIterator"><code class="classname">pango.AttrIterator</code></a>.</td></tr></tbody></table><p>The <code class="methodname">get_iterator</code>() method creates and
48
48
returns a <a class="link" href="class-pangoattriterator.html" title="pango.AttrIterator"><code class="classname">pango.AttrIterator</code></a> 
49
 
initialized to the beginning of the attribute list.</p></div><div class="refsect2" lang="en"><a name="method-pangoattrlist--filter"></a><h3>pango.AttrList.filter</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">filter</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 callback function that returns
 
49
initialized to the beginning of the attribute list.</p></div><div class="refsect2" title="pango.AttrList.filter"><a name="method-pangoattrlist--filter"></a><h3>pango.AttrList.filter</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">filter</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 callback function that returns
50
50
          <code class="literal">True</code> if an attribute should be filtered
51
51
          out.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>data</code></strong> :</span></p></td><td>data to be passed to
52
52
          <em class="parameter"><code>func</code></em></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new <a class="link" href="class-pangoattrlist.html" title="pango.AttrList"><code class="classname">pango.AttrList</code></a>
53
 
          or <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.4 and above.</p></div><p>The <code class="methodname">filter</code>() method arranges for the
 
53
          or <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.4 and above.</p></div><p>The <code class="methodname">filter</code>() method arranges for the
54
54
callback function specified by <em class="parameter"><code>function</code></em> to be called
55
55
on each <a class="link" href="class-pangoattribute.html" title="pango.Attribute"><code class="classname">pango.Attribute</code></a>
56
56
in the attribute list with the optional user data specified by
63
63
attribute list. The <code class="methodname">filter</code> method returns a new
64
64
<a class="link" href="class-pangoattrlist.html" title="pango.AttrList"><code class="classname">pango.AttrList</code></a>
65
65
containing the attributes that were filtered out (removed from) the
66
 
attribute list.</p></div></div><div class="refsect1" lang="en"><a name="id3195201"></a><h2>Functions</h2><div class="refsect2" lang="en"><a name="function-pango--parse-markup"></a><h3>pango.parse_markup</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">pango.parse_markup</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>markup_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>accel_marker</code></strong></span><span class="initializer">=u'\x00'</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>markup_text</code></strong> :</span></p></td><td>a string containing the markup to
 
66
attribute list.</p></div></div><div class="refsect1" title="Functions"><a name="id3165807"></a><h2>Functions</h2><div class="refsect2" title="pango.parse_markup"><a name="function-pango--parse-markup"></a><h3>pango.parse_markup</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">pango.parse_markup</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>markup_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>accel_marker</code></strong></span><span class="initializer">=u'\x00'</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>markup_text</code></strong> :</span></p></td><td>a string containing the markup to
67
67
parse.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>accel_marker</code></strong> :</span></p></td><td>the Unicode character that precedes an
68
68
accelerator, or u'\x00' for none</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a 3-tuple containing a <a class="link" href="class-pangoattrlist.html" title="pango.AttrList"><code class="classname">pango.AttrList</code></a>,
69
69
the plain text in <em class="parameter"><code>markup_text</code></em>, and the first