1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.TextView</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-gtktexttagtable.html" title="gtk.TextTagTable"><link rel="next" href="class-gtktoggleaction.html" title="gtk.ToggleAction"></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.TextView</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtktexttagtable.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtktoggleaction.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtktextview"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.TextView</h2><p>gtk.TextView — a widget that displays the contents of a <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a></p></div><div class="refsect1" lang="en"><a name="id3751244"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.TextView</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a></span></span>):
2
<code class="constructorsynopsis"> <span class="methodname"><a class="link" href="class-gtktextview.html#constructor-gtktextview" title="Constructor">gtk.TextView</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-buffer" title="gtk.TextView.set_buffer">set_buffer</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-gtktextview.html#method-gtktextview--get-buffer" title="gtk.TextView.get_buffer">get_buffer</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--scroll-to-iter" title="gtk.TextView.scroll_to_iter">scroll_to_iter</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>within_margin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>use_align</code></strong></span><span class="initializer">=False</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xalign</code></strong></span><span class="initializer">=0.5</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>yalign</code></strong></span><span class="initializer">=0.5</span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--scroll-to-mark" title="gtk.TextView.scroll_to_mark">scroll_to_mark</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>mark</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>within_margin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>use_align</code></strong></span><span class="initializer">=False</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xalign</code></strong></span><span class="initializer">=0.5</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>yalign</code></strong></span><span class="initializer">=0.5</span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--scroll-mark-onscreen" title="gtk.TextView.scroll_mark_onscreen">scroll_mark_onscreen</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>mark</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--move-mark-onscreen" title="gtk.TextView.move_mark_onscreen">move_mark_onscreen</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>mark</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--place-cursor-onscreen" title="gtk.TextView.place_cursor_onscreen">place_cursor_onscreen</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-visible-rect" title="gtk.TextView.get_visible_rect">get_visible_rect</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-cursor-visible" title="gtk.TextView.set_cursor_visible">set_cursor_visible</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>setting</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-cursor-visible" title="gtk.TextView.get_cursor_visible">get_cursor_visible</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-iter-location" title="gtk.TextView.get_iter_location">get_iter_location</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-iter-at-location" title="gtk.TextView.get_iter_at_location">get_iter_at_location</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-line-yrange" title="gtk.TextView.get_line_yrange">get_line_yrange</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-line-at-y" title="gtk.TextView.get_line_at_y">get_line_at_y</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>target_iter</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--buffer-to-window-coords" title="gtk.TextView.buffer_to_window_coords">buffer_to_window_coords</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>win</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer_x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer_y</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--window-to-buffer-coords" title="gtk.TextView.window_to_buffer_coords">window_to_buffer_coords</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>win</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>window_x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>window_y</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-window" title="gtk.TextView.get_window">get_window</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>win</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-window-type" title="gtk.TextView.get_window_type">get_window_type</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-border-window-size" title="gtk.TextView.set_border_window_size">set_border_window_size</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>size</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-border-window-size" title="gtk.TextView.get_border_window_size">get_border_window_size</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>type</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--forward-display-line" title="gtk.TextView.forward_display_line">forward_display_line</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--backward-display-line" title="gtk.TextView.backward_display_line">backward_display_line</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--forward-display-line-end" title="gtk.TextView.forward_display_line_end">forward_display_line_end</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--backward-display-line-start" title="gtk.TextView.backward_display_line_start">backward_display_line_start</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--starts-display-line" title="gtk.TextView.starts_display_line">starts_display_line</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--move-visually" title="gtk.TextView.move_visually">move_visually</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>count</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--add-child-at-anchor" title="gtk.TextView.add_child_at_anchor">add_child_at_anchor</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>anchor</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--add-child-in-window" title="gtk.TextView.add_child_in_window">add_child_in_window</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>which_window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xpos</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ypos</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--move-child" title="gtk.TextView.move_child">move_child</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xpos</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ypos</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-wrap-mode" title="gtk.TextView.set_wrap_mode">set_wrap_mode</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>wrap_mode</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-wrap-mode" title="gtk.TextView.get_wrap_mode">get_wrap_mode</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-editable" title="gtk.TextView.set_editable">set_editable</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>setting</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-editable" title="gtk.TextView.get_editable">get_editable</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-overwrite" title="gtk.TextView.set_overwrite">set_overwrite</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>overwrite</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-overwrite" title="gtk.TextView.get_overwrite">get_overwrite</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-accepts-tab" title="gtk.TextView.set_accepts_tab">set_accepts_tab</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>accepts_tab</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-accepts-tab" title="gtk.TextView.get_accepts_tab">get_accepts_tab</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-pixels-above-lines" title="gtk.TextView.set_pixels_above_lines">set_pixels_above_lines</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixels_above_lines</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-pixels-above-lines" title="gtk.TextView.get_pixels_above_lines">get_pixels_above_lines</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-pixels-below-lines" title="gtk.TextView.set_pixels_below_lines">set_pixels_below_lines</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixels_below_lines</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-pixels-below-lines" title="gtk.TextView.get_pixels_below_lines">get_pixels_below_lines</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-pixels-inside-wrap" title="gtk.TextView.set_pixels_inside_wrap">set_pixels_inside_wrap</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixels_inside_wrap</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-pixels-inside-wrap" title="gtk.TextView.get_pixels_inside_wrap">get_pixels_inside_wrap</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-justification" title="gtk.TextView.set_justification">set_justification</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>justification</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-justification" title="gtk.TextView.get_justification">get_justification</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-left-margin" title="gtk.TextView.set_left_margin">set_left_margin</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>left_margin</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-left-margin" title="gtk.TextView.get_left_margin">get_left_margin</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-right-margin" title="gtk.TextView.set_right_margin">set_right_margin</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>right_margin</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-right-margin" title="gtk.TextView.get_right_margin">get_right_margin</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-indent" title="gtk.TextView.set_indent">set_indent</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>indent</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-indent" title="gtk.TextView.get_indent">get_indent</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-tabs" title="gtk.TextView.set_tabs">set_tabs</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>tabs</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-tabs" title="gtk.TextView.get_tabs">get_tabs</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-default-attributes" title="gtk.TextView.get_default_attributes">get_default_attributes</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3752989"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.TextView</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-gtktexttagtable.html" title="gtk.TextTagTable"><link rel="next" href="class-gtktoggleaction.html" title="gtk.ToggleAction"></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.TextView</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtktexttagtable.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtktoggleaction.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.TextView"><a name="class-gtktextview"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.TextView</h2><p>gtk.TextView — a widget that displays the contents of a <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a></p></div><div class="refsect1" title="Synopsis"><a name="id4061274"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.TextView</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a></span></span>):
2
<code class="constructorsynopsis"> <span class="methodname"><a class="link" href="class-gtktextview.html#constructor-gtktextview" title="Constructor">gtk.TextView</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-buffer" title="gtk.TextView.set_buffer">set_buffer</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-gtktextview.html#method-gtktextview--get-buffer" title="gtk.TextView.get_buffer">get_buffer</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--scroll-to-iter" title="gtk.TextView.scroll_to_iter">scroll_to_iter</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>within_margin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>use_align</code></strong></span><span class="initializer">=False</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xalign</code></strong></span><span class="initializer">=0.5</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>yalign</code></strong></span><span class="initializer">=0.5</span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--scroll-to-mark" title="gtk.TextView.scroll_to_mark">scroll_to_mark</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>mark</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>within_margin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>use_align</code></strong></span><span class="initializer">=False</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xalign</code></strong></span><span class="initializer">=0.5</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>yalign</code></strong></span><span class="initializer">=0.5</span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--scroll-mark-onscreen" title="gtk.TextView.scroll_mark_onscreen">scroll_mark_onscreen</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>mark</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--move-mark-onscreen" title="gtk.TextView.move_mark_onscreen">move_mark_onscreen</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>mark</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--place-cursor-onscreen" title="gtk.TextView.place_cursor_onscreen">place_cursor_onscreen</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-visible-rect" title="gtk.TextView.get_visible_rect">get_visible_rect</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-cursor-visible" title="gtk.TextView.set_cursor_visible">set_cursor_visible</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>setting</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-cursor-visible" title="gtk.TextView.get_cursor_visible">get_cursor_visible</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-iter-location" title="gtk.TextView.get_iter_location">get_iter_location</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-iter-at-location" title="gtk.TextView.get_iter_at_location">get_iter_at_location</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-line-yrange" title="gtk.TextView.get_line_yrange">get_line_yrange</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-line-at-y" title="gtk.TextView.get_line_at_y">get_line_at_y</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>target_iter</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--buffer-to-window-coords" title="gtk.TextView.buffer_to_window_coords">buffer_to_window_coords</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>win</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer_x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer_y</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--window-to-buffer-coords" title="gtk.TextView.window_to_buffer_coords">window_to_buffer_coords</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>win</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>window_x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>window_y</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-window" title="gtk.TextView.get_window">get_window</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>win</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-window-type" title="gtk.TextView.get_window_type">get_window_type</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-border-window-size" title="gtk.TextView.set_border_window_size">set_border_window_size</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>size</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-border-window-size" title="gtk.TextView.get_border_window_size">get_border_window_size</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>type</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--forward-display-line" title="gtk.TextView.forward_display_line">forward_display_line</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--backward-display-line" title="gtk.TextView.backward_display_line">backward_display_line</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--forward-display-line-end" title="gtk.TextView.forward_display_line_end">forward_display_line_end</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--backward-display-line-start" title="gtk.TextView.backward_display_line_start">backward_display_line_start</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--starts-display-line" title="gtk.TextView.starts_display_line">starts_display_line</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--move-visually" title="gtk.TextView.move_visually">move_visually</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>count</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--add-child-at-anchor" title="gtk.TextView.add_child_at_anchor">add_child_at_anchor</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>anchor</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--add-child-in-window" title="gtk.TextView.add_child_in_window">add_child_in_window</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>which_window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xpos</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ypos</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--move-child" title="gtk.TextView.move_child">move_child</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xpos</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ypos</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-wrap-mode" title="gtk.TextView.set_wrap_mode">set_wrap_mode</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>wrap_mode</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-wrap-mode" title="gtk.TextView.get_wrap_mode">get_wrap_mode</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-editable" title="gtk.TextView.set_editable">set_editable</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>setting</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-editable" title="gtk.TextView.get_editable">get_editable</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-overwrite" title="gtk.TextView.set_overwrite">set_overwrite</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>overwrite</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-overwrite" title="gtk.TextView.get_overwrite">get_overwrite</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-accepts-tab" title="gtk.TextView.set_accepts_tab">set_accepts_tab</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>accepts_tab</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-accepts-tab" title="gtk.TextView.get_accepts_tab">get_accepts_tab</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-pixels-above-lines" title="gtk.TextView.set_pixels_above_lines">set_pixels_above_lines</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixels_above_lines</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-pixels-above-lines" title="gtk.TextView.get_pixels_above_lines">get_pixels_above_lines</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-pixels-below-lines" title="gtk.TextView.set_pixels_below_lines">set_pixels_below_lines</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixels_below_lines</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-pixels-below-lines" title="gtk.TextView.get_pixels_below_lines">get_pixels_below_lines</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-pixels-inside-wrap" title="gtk.TextView.set_pixels_inside_wrap">set_pixels_inside_wrap</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixels_inside_wrap</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-pixels-inside-wrap" title="gtk.TextView.get_pixels_inside_wrap">get_pixels_inside_wrap</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-justification" title="gtk.TextView.set_justification">set_justification</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>justification</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-justification" title="gtk.TextView.get_justification">get_justification</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-left-margin" title="gtk.TextView.set_left_margin">set_left_margin</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>left_margin</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-left-margin" title="gtk.TextView.get_left_margin">get_left_margin</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-right-margin" title="gtk.TextView.set_right_margin">set_right_margin</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>right_margin</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-right-margin" title="gtk.TextView.get_right_margin">get_right_margin</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-indent" title="gtk.TextView.set_indent">set_indent</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>indent</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-indent" title="gtk.TextView.get_indent">get_indent</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--set-tabs" title="gtk.TextView.set_tabs">set_tabs</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>tabs</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-tabs" title="gtk.TextView.get_tabs">get_tabs</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-default-attributes" title="gtk.TextView.get_default_attributes">get_default_attributes</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" title="Ancestry"><a name="id4063019"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
3
3
+-- <a class="link" href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
4
4
+-- <a class="link" href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a>
5
5
+-- <a class="link" href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a>
6
6
+-- <a class="link" href="class-gtktextview.html" title="gtk.TextView">gtk.TextView</a>
7
</pre></div><div class="refsect1" lang="en"><a name="id3753033"></a><h2>Implemented Interfaces</h2><p>
7
</pre></div><div class="refsect1" title="Implemented Interfaces"><a name="id4063064"></a><h2>Implemented Interfaces</h2><p>
8
8
<a class="link" href="class-gtktextview.html" title="gtk.TextView"><code class="classname">gtk.TextView</code></a>
10
10
<a class="link" href="class-gtkbuildable.html" title="gtk.Buildable"><code class="classname">gtk.Buildable</code></a>
11
</p></div><div class="refsect1" lang="en"><a name="properties-gtktextview"></a><h2>gtk.TextView Properties</h2><p><a class="link" href="class-gtkobject.html#properties-gtkobject" title="gtk.Object Properties">gtk.Object Properties</a></p><p><a class="link" href="class-gtkwidget.html#properties-gtkwidget" title="gtk.Widget Properties">gtk.Widget Properties</a></p><p><a class="link" href="class-gtkcontainer.html#properties-gtkcontainer" title="gtk.Container Properties">gtk.Container Properties</a></p><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table width="100%" border="0"><colgroup><col><col><col></colgroup><tbody><tr valign="top"><td valign="top">"accepts-tab"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, pressing
11
</p></div><div class="refsect1" title="gtk.TextView Properties"><a name="properties-gtktextview"></a><h2>gtk.TextView Properties</h2><p><a class="link" href="class-gtkobject.html#properties-gtkobject" title="gtk.Object Properties">gtk.Object Properties</a></p><p><a class="link" href="class-gtkwidget.html#properties-gtkwidget" title="gtk.Widget Properties">gtk.Widget Properties</a></p><p><a class="link" href="class-gtkcontainer.html#properties-gtkcontainer" title="gtk.Container Properties">gtk.Container Properties</a></p><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table width="100%" border="0"><colgroup><col width="1in"><col width="1in"><col width="4in"></colgroup><tbody><tr valign="top"><td valign="top">"accepts-tab"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, pressing
12
12
<span class="keycap"><strong>Tab</strong></span> will result in a tab character being entered; otherwise
13
13
the focus will be moved. Available in GTK+ 2.4 and above.</td></tr><tr valign="top"><td valign="top">"buffer"</td><td valign="top">Read-Write</td><td valign="top">The buffer that is displayed. Available in GTK+ 2.4 and
14
14
above.</td></tr><tr valign="top"><td valign="top">"cursor-visible"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, the insertion cursor is
23
23
paragraphs</td></tr><tr valign="top"><td valign="top">"pixels-inside-wrap"</td><td valign="top">Read-Write</td><td valign="top">The default number of pixels of blank space between
24
24
wrapped lines in a paragraph</td></tr><tr valign="top"><td valign="top">"right-margin"</td><td valign="top">Read-Write</td><td valign="top">The default width of the right margin in pixels</td></tr><tr valign="top"><td valign="top">"tabs"</td><td valign="top">Read-Write</td><td valign="top">The default custom tabs</td></tr><tr valign="top"><td valign="top">"wrap-mode"</td><td valign="top">Read-Write</td><td valign="top">The default wrap mode:
25
25
<code class="literal">gtk.WRAP_NONE</code>, <code class="literal">gtk.WRAP_CHAR</code> or
26
<code class="literal">gtk.WRAP_WORD</code></td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="style-properties-gtktextview"></a><h2>gtk.TextView Style Properties</h2><p><a class="link" href="class-gtkwidget.html#style-properties-gtkwidget" title="gtk.Widget Style Properties">gtk.Widget Style Properties</a></p><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table width="100%" border="0"><colgroup><col><col><col></colgroup><tbody><tr valign="top"><td valign="top">"error-underline-color"</td><td valign="top">Read-Write</td><td valign="top">The <a class="link" href="class-gdkcolor.html" title="gtk.gdk.Color"><code class="classname">gtk.gdk.Color</code></a> with
26
<code class="literal">gtk.WRAP_WORD</code></td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="gtk.TextView Style Properties"><a name="style-properties-gtktextview"></a><h2>gtk.TextView Style Properties</h2><p><a class="link" href="class-gtkwidget.html#style-properties-gtkwidget" title="gtk.Widget Style Properties">gtk.Widget Style Properties</a></p><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table width="100%" border="0"><colgroup><col width="1in"><col width="1in"><col width="4in"></colgroup><tbody><tr valign="top"><td valign="top">"error-underline-color"</td><td valign="top">Read-Write</td><td valign="top">The <a class="link" href="class-gdkcolor.html" title="gtk.gdk.Color"><code class="classname">gtk.gdk.Color</code></a> with
27
27
which to draw error-indication underlines. Available in GTK+ 2.4 and
28
above.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtktextview"></a><h2>gtk.TextView Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p><p><a class="link" href="class-gtkobject.html#signal-prototypes-gtkobject" title="gtk.Object Signal Prototypes">gtk.Object Signal Prototypes</a></p><p><a class="link" href="class-gtkwidget.html#signal-prototypes-gtkwidget" title="gtk.Widget Signal Prototypes">gtk.Widget Signal Prototypes</a></p><p><a class="link" href="class-gtkcontainer.html#signal-prototypes-gtkcontainer" title="gtk.Container Signal Prototypes">gtk.Container Signal Prototypes</a></p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--backspace" title='The "backspace" gtk.TextView Signal'>backspace</a></span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--copy-clipboard" title='The "copy-clipboard" gtk.TextView Signal'>copy-clipboard</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--cut-clipboard" title='The "cut-clipboard" gtk.TextView Signal'>cut-clipboard</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--delete-from-cursor" title='The "delete-from-cursor" gtk.TextView Signal'>delete-from-cursor</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>delete_type</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>count</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--insert-at-cursor" title='The "insert-at-cursor" gtk.TextView Signal'>insert-at-cursor</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>string</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--move-cursor" title='The "move-cursor" gtk.TextView Signal'>move-cursor</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>step_size</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>count</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>extend_selection</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--move-focus" title='The "move-focus" gtk.TextView Signal'>move-focus</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>direction</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--move-viewport" title='The "move-viewport" gtk.TextView Signal'>move-viewport</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>scrollstep</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>count</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--page-horizontally" title='The "page-horizontally" gtk.TextView Signal'>page-horizontally</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>count</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>extend_selection</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--paste-clipboard" title='The "paste-clipboard" gtk.TextView Signal'>paste-clipboard</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--populate-popup" title='The "populate-popup" gtk.TextView Signal'>populate-popup</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>menu</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--select-all" title='The "select-all" gtk.TextView Signal'>select-all</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>select</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--set-anchor" title='The "set-anchor" gtk.TextView Signal'>set-anchor</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--set-scroll-adjustments" title='The "set-scroll-adjustments" gtk.TextView Signal'>set-scroll-adjustments</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>hadjustment</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>vadjustment</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--toggle-overwrite" title='The "toggle-overwrite" gtk.TextView Signal'>toggle-overwrite</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr></tbody></table></div><div class="refsect1" lang="en"><a name="description-gtktextview"></a><h2>Description</h2><p>A <a class="link" href="class-gtktextview.html" title="gtk.TextView"><code class="classname">gtk.TextView</code></a>
28
above.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="gtk.TextView Signal Prototypes"><a name="signal-prototypes-gtktextview"></a><h2>gtk.TextView Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p><p><a class="link" href="class-gtkobject.html#signal-prototypes-gtkobject" title="gtk.Object Signal Prototypes">gtk.Object Signal Prototypes</a></p><p><a class="link" href="class-gtkwidget.html#signal-prototypes-gtkwidget" title="gtk.Widget Signal Prototypes">gtk.Widget Signal Prototypes</a></p><p><a class="link" href="class-gtkcontainer.html#signal-prototypes-gtkcontainer" title="gtk.Container Signal Prototypes">gtk.Container Signal Prototypes</a></p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--backspace" title='The "backspace" gtk.TextView Signal'>backspace</a></span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--copy-clipboard" title='The "copy-clipboard" gtk.TextView Signal'>copy-clipboard</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--cut-clipboard" title='The "cut-clipboard" gtk.TextView Signal'>cut-clipboard</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--delete-from-cursor" title='The "delete-from-cursor" gtk.TextView Signal'>delete-from-cursor</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>delete_type</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>count</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--insert-at-cursor" title='The "insert-at-cursor" gtk.TextView Signal'>insert-at-cursor</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>string</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--move-cursor" title='The "move-cursor" gtk.TextView Signal'>move-cursor</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>step_size</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>count</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>extend_selection</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--move-focus" title='The "move-focus" gtk.TextView Signal'>move-focus</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>direction</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--move-viewport" title='The "move-viewport" gtk.TextView Signal'>move-viewport</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>scrollstep</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>count</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--page-horizontally" title='The "page-horizontally" gtk.TextView Signal'>page-horizontally</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>count</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>extend_selection</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--paste-clipboard" title='The "paste-clipboard" gtk.TextView Signal'>paste-clipboard</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--populate-popup" title='The "populate-popup" gtk.TextView Signal'>populate-popup</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>menu</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--select-all" title='The "select-all" gtk.TextView Signal'>select-all</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>select</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--set-anchor" title='The "set-anchor" gtk.TextView Signal'>set-anchor</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--set-scroll-adjustments" title='The "set-scroll-adjustments" gtk.TextView Signal'>set-scroll-adjustments</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>hadjustment</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>vadjustment</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktextview.html#signal-gtktextview--toggle-overwrite" title='The "toggle-overwrite" gtk.TextView Signal'>toggle-overwrite</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr></tbody></table></div><div class="refsect1" title="Description"><a name="description-gtktextview"></a><h2>Description</h2><p>A <a class="link" href="class-gtktextview.html" title="gtk.TextView"><code class="classname">gtk.TextView</code></a>
29
29
widget provides the display for the contents of a <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a>
30
30
object. A textview provides a set of attributes for the default display of
31
31
text from a textbuffer. The attributes set by <a class="link" href="class-gtktexttag.html" title="gtk.TextTag"><code class="classname">gtk.TextTag</code></a> objects
61
61
copy and paste clipboard through the
62
62
<code class="literal">gdk.SELECTION_CLIPBOARD</code> clipboard. Also the selected text
63
63
in a <a class="link" href="class-gtktextview.html" title="gtk.TextView"><code class="classname">gtk.TextView</code></a> is
64
available on the <code class="literal">gdk.SELECTION_PRIMARY</code> clipboard.</p></div><div class="refsect1" lang="en"><a name="constructor-gtktextview"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis"> <span class="methodname">gtk.TextView</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer</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>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>
64
available on the <code class="literal">gdk.SELECTION_PRIMARY</code> clipboard.</p></div><div class="refsect1" title="Constructor"><a name="constructor-gtktextview"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis"> <span class="methodname">gtk.TextView</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer</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>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>
65
65
or <code class="literal">None</code></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new <a class="link" href="class-gtktextview.html" title="gtk.TextView"><code class="classname">gtk.TextView</code></a>.</td></tr></tbody></table><p>Creates a new <a class="link" href="class-gtktextview.html" title="gtk.TextView"><code class="classname">gtk.TextView</code></a>
66
66
widget displaying the <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a>
67
67
specified by <em class="parameter"><code>buffer</code></em>. If <em class="parameter"><code>buffer</code></em>
68
68
is <code class="literal">None</code>, a new <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a>
69
will be created. One textbuffer can be shared among many widgets.</p></div><div class="refsect1" lang="en"><a name="id3755184"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtktextview--set-buffer"></a><h3>gtk.TextView.set_buffer</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_buffer</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></tbody></table><p>The <code class="methodname">set_buffer</code>() method sets the <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a>
69
will be created. One textbuffer can be shared among many widgets.</p></div><div class="refsect1" title="Methods"><a name="id4065214"></a><h2>Methods</h2><div class="refsect2" title="gtk.TextView.set_buffer"><a name="method-gtktextview--set-buffer"></a><h3>gtk.TextView.set_buffer</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_buffer</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></tbody></table><p>The <code class="methodname">set_buffer</code>() method sets the <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a>
70
70
specified by <em class="parameter"><code>buffer</code></em> as the textbuffer being displayed
71
by the textview.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--get-buffer"></a><h3>gtk.TextView.get_buffer</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_buffer</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 <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a></td></tr></tbody></table><p>The <code class="methodname">get_buffer</code>() method returns the
71
by the textview.</p></div><div class="refsect2" title="gtk.TextView.get_buffer"><a name="method-gtktextview--get-buffer"></a><h3>gtk.TextView.get_buffer</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_buffer</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 <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a></td></tr></tbody></table><p>The <code class="methodname">get_buffer</code>() method returns the
72
72
<a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a>
73
being displayed by this textview.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--scroll-to-iter"></a><h3>gtk.TextView.scroll_to_iter</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">scroll_to_iter</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>within_margin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>use_align</code></strong></span><span class="initializer">=False</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xalign</code></strong></span><span class="initializer">=0.5</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>yalign</code></strong></span><span class="initializer">=0.5</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>iter</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktextiter.html" title="gtk.TextIter"><code class="classname">gtk.TextIter</code></a>
73
being displayed by this textview.</p></div><div class="refsect2" title="gtk.TextView.scroll_to_iter"><a name="method-gtktextview--scroll-to-iter"></a><h3>gtk.TextView.scroll_to_iter</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">scroll_to_iter</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>within_margin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>use_align</code></strong></span><span class="initializer">=False</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xalign</code></strong></span><span class="initializer">=0.5</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>yalign</code></strong></span><span class="initializer">=0.5</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>iter</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktextiter.html" title="gtk.TextIter"><code class="classname">gtk.TextIter</code></a>
74
74
object</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>within_margin</code></strong> :</span></p></td><td>the margin as a [0.0,0.5) fraction of screen
75
75
size</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>use_align</code></strong> :</span></p></td><td>if <code class="literal">True</code> use the alignment
76
76
arguments; if <code class="literal">False</code>, just get <em class="parameter"><code>iter</code></em>
109
109
scrolls the minimal distance to get <em class="parameter"><code>mark</code></em> on screen,
110
110
possibly not scrolling at all. The effective screen for purposes of this
111
111
function is reduced by a margin of size specified by
112
<em class="parameter"><code>within_margin</code></em>.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--scroll-mark-onscreen"></a><h3>gtk.TextView.scroll_mark_onscreen</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">scroll_mark_onscreen</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>mark</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>mark</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktextmark.html" title="gtk.TextMark"><code class="classname">gtk.TextMark</code></a> in
112
<em class="parameter"><code>within_margin</code></em>.</p></div><div class="refsect2" title="gtk.TextView.scroll_mark_onscreen"><a name="method-gtktextview--scroll-mark-onscreen"></a><h3>gtk.TextView.scroll_mark_onscreen</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">scroll_mark_onscreen</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>mark</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>mark</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktextmark.html" title="gtk.TextMark"><code class="classname">gtk.TextMark</code></a> in
113
113
the textbuffer for textview</td></tr></tbody></table><p>The <code class="methodname">scroll_mark_onscreen</code>() method
114
114
scrolls the textview the minimum distance to place the <a class="link" href="class-gtktextmark.html" title="gtk.TextMark"><code class="classname">gtk.TextMark</code></a>
115
115
location specified by <em class="parameter"><code>mark</code></em> within the visible area of
116
the widget.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--move-mark-onscreen"></a><h3>gtk.TextView.move_mark_onscreen</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">move_mark_onscreen</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>mark</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>mark</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktextmark.html" title="gtk.TextMark"><code class="classname">gtk.TextMark</code></a>
116
the widget.</p></div><div class="refsect2" title="gtk.TextView.move_mark_onscreen"><a name="method-gtktextview--move-mark-onscreen"></a><h3>gtk.TextView.move_mark_onscreen</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">move_mark_onscreen</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>mark</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>mark</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktextmark.html" title="gtk.TextMark"><code class="classname">gtk.TextMark</code></a>
117
117
object</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
118
118
<em class="parameter"><code>mark</code></em> moved (wasn't already
119
119
on screen)</td></tr></tbody></table><p>The <code class="methodname">move_mark_onscreen</code>() moves the
120
120
<a class="link" href="class-gtktextmark.html" title="gtk.TextMark"><code class="classname">gtk.TextMark</code></a>
121
121
location specified by <em class="parameter"><code>mark</code></em> to a location within the
122
currently-visible text area of the textview.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--place-cursor-onscreen"></a><h3>gtk.TextView.place_cursor_onscreen</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">place_cursor_onscreen</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>True if the cursor had to be
122
currently-visible text area of the textview.</p></div><div class="refsect2" title="gtk.TextView.place_cursor_onscreen"><a name="method-gtktextview--place-cursor-onscreen"></a><h3>gtk.TextView.place_cursor_onscreen</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">place_cursor_onscreen</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>True if the cursor had to be
123
123
moved.</td></tr></tbody></table><p>The <code class="methodname">place_cursor_onscreen</code>() method
124
124
moves the cursor to a new location within the currently visible region of
125
the buffer, if it isn't there already.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--get-visible-rect"></a><h3>gtk.TextView.get_visible_rect</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_visible_rect</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 <a class="link" href="class-gdkrectangle.html" title="gtk.gdk.Rectangle"><code class="classname">gtk.gdk.Rectangle</code></a></td></tr></tbody></table><p>The <code class="methodname">get_visible_rect</code>() method returns a
125
the buffer, if it isn't there already.</p></div><div class="refsect2" title="gtk.TextView.get_visible_rect"><a name="method-gtktextview--get-visible-rect"></a><h3>gtk.TextView.get_visible_rect</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_visible_rect</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 <a class="link" href="class-gdkrectangle.html" title="gtk.gdk.Rectangle"><code class="classname">gtk.gdk.Rectangle</code></a></td></tr></tbody></table><p>The <code class="methodname">get_visible_rect</code>() method returns a
126
126
<a class="link" href="class-gdkrectangle.html" title="gtk.gdk.Rectangle"><code class="classname">gtk.gdk.Rectangle</code></a>
127
127
containing the coordinates of the currently-visible region of the buffer.
128
128
The rectangle is in buffer coordinates that can be converted to window
129
129
coordinates with the <a class="link" href="class-gtktextview.html#method-gtktextview--buffer-to-window-coords" title="gtk.TextView.buffer_to_window_coords"><code class="methodname">buffer_to_window_coords</code>()</a>
130
method.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--set-cursor-visible"></a><h3>gtk.TextView.set_cursor_visible</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_cursor_visible</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>setting</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>setting</code></strong> :</span></p></td><td>if <code class="literal">True</code> show the insertion
130
method.</p></div><div class="refsect2" title="gtk.TextView.set_cursor_visible"><a name="method-gtktextview--set-cursor-visible"></a><h3>gtk.TextView.set_cursor_visible</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_cursor_visible</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>setting</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>setting</code></strong> :</span></p></td><td>if <code class="literal">True</code> show the insertion
131
131
cursor</td></tr></tbody></table><p>The <code class="methodname">set_cursor_visible</code>() method sets
132
132
the "cursor-visible" property to the value of
133
133
<em class="parameter"><code>setting</code></em>. If <em class="parameter"><code>setting</code></em> is
134
134
<code class="literal">True</code> the cursor is visible; if <code class="literal">False</code>,
135
135
it is not. A buffer with no editable text probably shouldn't have a visible
136
cursor, so you may want to turn the cursor off.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--get-cursor-visible"></a><h3>gtk.TextView.get_cursor_visible</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_cursor_visible</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 insertion mark
136
cursor, so you may want to turn the cursor off.</p></div><div class="refsect2" title="gtk.TextView.get_cursor_visible"><a name="method-gtktextview--get-cursor-visible"></a><h3>gtk.TextView.get_cursor_visible</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_cursor_visible</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 insertion mark
137
137
is visible</td></tr></tbody></table><p>The <code class="methodname">get_cursor_visible</code>() method returns
138
138
the value of the "cursor-visible" property that determines if the insertion
139
point is visible.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--get-iter-location"></a><h3>gtk.TextView.get_iter_location</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_iter_location</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</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>iter</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktextiter.html" title="gtk.TextIter"><code class="classname">gtk.TextIter</code></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a <a class="link" href="class-gdkrectangle.html" title="gtk.gdk.Rectangle"><code class="classname">gtk.gdk.Rectangle</code></a>
139
point is visible.</p></div><div class="refsect2" title="gtk.TextView.get_iter_location"><a name="method-gtktextview--get-iter-location"></a><h3>gtk.TextView.get_iter_location</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_iter_location</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</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>iter</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktextiter.html" title="gtk.TextIter"><code class="classname">gtk.TextIter</code></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a <a class="link" href="class-gdkrectangle.html" title="gtk.gdk.Rectangle"><code class="classname">gtk.gdk.Rectangle</code></a>
140
140
containing the bounds of the character at
141
141
<em class="parameter"><code>iter</code></em></td></tr></tbody></table><p>The <code class="methodname">get_iter_location</code>() method returns
142
142
a <a class="link" href="class-gdkrectangle.html" title="gtk.gdk.Rectangle"><code class="classname">gtk.gdk.Rectangle</code></a>
143
143
that contains the character at the location specified by
144
144
<em class="parameter"><code>iter</code></em>. The rectangle position is in buffer coordinates
145
145
that can be converted to window coordinates with the <a class="link" href="class-gtktextview.html#method-gtktextview--buffer-to-window-coords" title="gtk.TextView.buffer_to_window_coords"><code class="methodname">buffer_to_window_coords</code>()</a>
146
method.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--get-iter-at-location"></a><h3>gtk.TextView.get_iter_at_location</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_iter_at_location</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</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>x</code></strong> :</span></p></td><td>x position, in buffer
146
method.</p></div><div class="refsect2" title="gtk.TextView.get_iter_at_location"><a name="method-gtktextview--get-iter-at-location"></a><h3>gtk.TextView.get_iter_at_location</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_iter_at_location</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</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>x</code></strong> :</span></p></td><td>x position, in buffer
147
147
coordinates</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>y position, in buffer
148
148
coordinates</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a <a class="link" href="class-gtktextiter.html" title="gtk.TextIter"><code class="classname">gtk.TextIter</code></a></td></tr></tbody></table><p>The <code class="methodname">get_iter_at_location</code>() method
149
149
returns a <a class="link" href="class-gtktextiter.html" title="gtk.TextIter"><code class="classname">gtk.TextIter</code></a> that
152
152
are coordinates for the entire buffer, not just the currently-displayed
153
153
portion. Window coordinates from an event, must be converted to buffer
154
154
coordinates with the <a class="link" href="class-gtktextview.html#method-gtktextview--window-to-buffer-coords" title="gtk.TextView.window_to_buffer_coords"><code class="methodname">window_to_buffer_coords</code>()</a>
155
method before using them with this method.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--get-line-yrange"></a><h3>gtk.TextView.get_line_yrange</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_line_yrange</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</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>iter</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktextiter.html" title="gtk.TextIter"><code class="classname">gtk.TextIter</code></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a tuple containing a y coordinate and a
155
method before using them with this method.</p></div><div class="refsect2" title="gtk.TextView.get_line_yrange"><a name="method-gtktextview--get-line-yrange"></a><h3>gtk.TextView.get_line_yrange</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_line_yrange</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</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>iter</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktextiter.html" title="gtk.TextIter"><code class="classname">gtk.TextIter</code></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a tuple containing a y coordinate and a
156
156
height</td></tr></tbody></table><p>The <code class="methodname">get_line_yrange</code>() method locates
157
157
the line containing the <a class="link" href="class-gtktextiter.html" title="gtk.TextIter"><code class="classname">gtk.TextIter</code></a>
158
158
specified by <em class="parameter"><code>iter</code></em> and returns a tuple containing the
159
159
y coordinate of the top of the line and the height of the line. The
160
160
coordinate is a buffer coordinate that can be converted to window
161
161
coordinates with the <a class="link" href="class-gtktextview.html#method-gtktextview--buffer-to-window-coords" title="gtk.TextView.buffer_to_window_coords"><code class="methodname">buffer_to_window_coords</code>()</a>
162
method.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--get-line-at-y"></a><h3>gtk.TextView.get_line_at_y</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_line_at_y</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</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>y</code></strong> :</span></p></td><td>a y coordinate</td></tr><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-gtktextiter.html" title="gtk.TextIter"><code class="classname">gtk.TextIter</code></a>
162
method.</p></div><div class="refsect2" title="gtk.TextView.get_line_at_y"><a name="method-gtktextview--get-line-at-y"></a><h3>gtk.TextView.get_line_at_y</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_line_at_y</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</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>y</code></strong> :</span></p></td><td>a y coordinate</td></tr><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-gtktextiter.html" title="gtk.TextIter"><code class="classname">gtk.TextIter</code></a>
163
163
pointing at the line start and the top coordinate of the
164
164
line</td></tr></tbody></table><p>The <code class="methodname">get_line_at_y</code>() method returns a
165
tuple containing:</p><div class="itemizedlist"><ul type="disc"><li>a <a class="link" href="class-gtktextiter.html" title="gtk.TextIter"><code class="classname">gtk.TextIter</code></a>
165
tuple containing:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">a <a class="link" href="class-gtktextiter.html" title="gtk.TextIter"><code class="classname">gtk.TextIter</code></a>
166
166
pointing at the start of the line with the vertical coordinate specified by
167
<em class="parameter"><code>y</code></em> and,</li><li>the vertical coordinate of the top edge of the
167
<em class="parameter"><code>y</code></em> and,</li><li class="listitem">the vertical coordinate of the top edge of the
168
168
line.</li></ul></div><p><em class="parameter"><code>y</code></em> is in buffer coordinates that can be
169
169
converted from window coordinates with the <a class="link" href="class-gtktextview.html#method-gtktextview--window-to-buffer-coords" title="gtk.TextView.window_to_buffer_coords"><code class="methodname">window_to_buffer_coords</code>()</a>
170
method.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--buffer-to-window-coords"></a><h3>gtk.TextView.buffer_to_window_coords</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">buffer_to_window_coords</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>win</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer_x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer_y</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>win</code></strong> :</span></p></td><td>one of the textview windows except
170
method.</p></div><div class="refsect2" title="gtk.TextView.buffer_to_window_coords"><a name="method-gtktextview--buffer-to-window-coords"></a><h3>gtk.TextView.buffer_to_window_coords</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">buffer_to_window_coords</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>win</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer_x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer_y</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>win</code></strong> :</span></p></td><td>one of the textview windows except
171
171
<code class="literal">gtk.TEXT_WINDOW_PRIVATE</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>buffer_x</code></strong> :</span></p></td><td>buffer x coordinate</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>buffer_y</code></strong> :</span></p></td><td>buffer y coordinate</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a tuple containing the window x and y
172
172
coordinates</td></tr></tbody></table><p>The <code class="methodname">buffer_to_window_coords</code>() method
173
173
returns a tuple containing the x and y coordinates for the window specified
174
174
by <em class="parameter"><code>win</code></em> that correspond to the textbuffer coordinates
175
175
specified by <em class="parameter"><code>buffer_x</code></em> and
176
176
<em class="parameter"><code>buffer_y</code></em>. See the above <a class="link" href="class-gtktextview.html#description-gtktextview" title="Description">description</a> for more details on
177
textview window types.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>You can't convert coordinates for a non-existing window (see
177
textview window types.</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>You can't convert coordinates for a non-existing window (see
178
178
the <a class="link" href="class-gtktextview.html#method-gtktextview--set-border-window-size" title="gtk.TextView.set_border_window_size"><code class="methodname">set_border_window_size</code>()</a>
179
method).</p></div></div><div class="refsect2" lang="en"><a name="method-gtktextview--window-to-buffer-coords"></a><h3>gtk.TextView.window_to_buffer_coords</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">window_to_buffer_coords</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>win</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>window_x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>window_y</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>win</code></strong> :</span></p></td><td>a textview window except
179
method).</p></div></div><div class="refsect2" title="gtk.TextView.window_to_buffer_coords"><a name="method-gtktextview--window-to-buffer-coords"></a><h3>gtk.TextView.window_to_buffer_coords</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">window_to_buffer_coords</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>win</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>window_x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>window_y</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>win</code></strong> :</span></p></td><td>a textview window except
180
180
<code class="literal">gtk.TEXT_WINDOW_PRIVATE</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>window_x</code></strong> :</span></p></td><td>window x coordinate</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>window_y</code></strong> :</span></p></td><td>window y coordinate</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a tuple containing the textbuffer x and y
181
181
coordinates</td></tr></tbody></table><p>The <code class="methodname">window_to_buffer_coords</code>() method
182
182
returns a tuple containing the textbuffer x and y coordinates corresponding
183
183
to the <em class="parameter"><code>window_x</code></em> and<em class="parameter"><code> window_y</code></em>
184
184
coordinates in the window specified by <em class="parameter"><code>win</code></em>, See the
185
185
above <a class="link" href="class-gtktextview.html#description-gtktextview" title="Description">description</a> for more
186
details on textview window types.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>You can't convert coordinates for a non-existing window (see
186
details on textview window types.</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>You can't convert coordinates for a non-existing window (see
187
187
the <a class="link" href="class-gtktextview.html#method-gtktextview--set-border-window-size" title="gtk.TextView.set_border_window_size"><code class="methodname">set_border_window_size</code>()</a>)
188
method.</p></div></div><div class="refsect2" lang="en"><a name="method-gtktextview--get-window"></a><h3>gtk.TextView.get_window</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_window</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>win</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>win</code></strong> :</span></p></td><td>a textview window type</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a>, or
188
method.</p></div></div><div class="refsect2" title="gtk.TextView.get_window"><a name="method-gtktextview--get-window"></a><h3>gtk.TextView.get_window</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_window</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>win</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>win</code></strong> :</span></p></td><td>a textview window type</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a>, or
189
189
<code class="literal">None</code></td></tr></tbody></table><p>The <code class="methodname">get_window</code>() method returns the
190
190
<a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a>
191
191
corresponding to an area of the textview specified by
271
271
they depend on the contents of the <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a>.
272
272
This method returns <code class="literal">True</code> if the location of
273
273
<em class="parameter"><code>iter</code></em> moves to a dereferenceable position (i.e. not
274
the end position).</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--starts-display-line"></a><h3>gtk.TextView.starts_display_line</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">starts_display_line</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</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>iter</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktextiter.html" title="gtk.TextIter"><code class="classname">gtk.TextIter</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 location of
274
the end position).</p></div><div class="refsect2" title="gtk.TextView.starts_display_line"><a name="method-gtktextview--starts-display-line"></a><h3>gtk.TextView.starts_display_line</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">starts_display_line</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</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>iter</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktextiter.html" title="gtk.TextIter"><code class="classname">gtk.TextIter</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 location of
275
275
<em class="parameter"><code>iter</code></em> is at the beginning of a display
276
276
line</td></tr></tbody></table><p>The <code class="methodname">starts_display_line</code>() method
277
277
returns <code class="literal">True</code> if the location of
278
278
<em class="parameter"><code>iter</code></em> is at the start of a display line. See the <a class="link" href="class-gtktextview.html#method-gtktextview--forward-display-line" title="gtk.TextView.forward_display_line"><code class="methodname">forward_display_line</code>()</a>
279
279
method for an explanation of display lines vs. textbuffer lines
280
(paragraphs).</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--move-visually"></a><h3>gtk.TextView.move_visually</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">move_visually</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>count</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>iter</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktextiter.html" title="gtk.TextIter"><code class="classname">gtk.TextIter</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>count</code></strong> :</span></p></td><td>the number of characters to move (may be
280
(paragraphs).</p></div><div class="refsect2" title="gtk.TextView.move_visually"><a name="method-gtktextview--move-visually"></a><h3>gtk.TextView.move_visually</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">move_visually</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>iter</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>count</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>iter</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktextiter.html" title="gtk.TextIter"><code class="classname">gtk.TextIter</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>count</code></strong> :</span></p></td><td>the number of characters to move (may be
281
281
negative)</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
282
282
<em class="parameter"><code>iter</code></em> moved and is not on the end
283
283
iterator</td></tr></tbody></table><p>The<code class="methodname"> move_visually</code>() method moves the
284
284
location of <em class="parameter"><code>iter</code></em> by <em class="parameter"><code>count</code></em>
285
285
cursor positions. If count is negative the location moves against the
286
286
normal text direction. Note a cursor position move may move over multiple
287
characters when multiple characters combine to form one grapheme.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--add-child-at-anchor"></a><h3>gtk.TextView.add_child_at_anchor</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">add_child_at_anchor</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>anchor</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>child</code></strong> :</span></p></td><td>a <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>anchor</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktextchildanchor.html" title="gtk.TextChildAnchor"><code class="classname">gtk.TextChildAnchor</code></a>
287
characters when multiple characters combine to form one grapheme.</p></div><div class="refsect2" title="gtk.TextView.add_child_at_anchor"><a name="method-gtktextview--add-child-at-anchor"></a><h3>gtk.TextView.add_child_at_anchor</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">add_child_at_anchor</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>anchor</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>child</code></strong> :</span></p></td><td>a <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>anchor</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktextchildanchor.html" title="gtk.TextChildAnchor"><code class="classname">gtk.TextChildAnchor</code></a>
288
288
in the textview's <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a></td></tr></tbody></table><p>The <code class="methodname">add_child_at_anchor</code>() method adds
289
289
the widget specified by <em class="parameter"><code>child</code></em> in the textview, at the
290
290
<a class="link" href="class-gtktextchildanchor.html" title="gtk.TextChildAnchor"><code class="classname">gtk.TextChildAnchor</code></a>
291
specified by <em class="parameter"><code>anchor</code></em>.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--add-child-in-window"></a><h3>gtk.TextView.add_child_in_window</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">add_child_in_window</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>which_window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xpos</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ypos</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>child</code></strong> :</span></p></td><td>a <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>which_window</code></strong> :</span></p></td><td>the textview window
291
specified by <em class="parameter"><code>anchor</code></em>.</p></div><div class="refsect2" title="gtk.TextView.add_child_in_window"><a name="method-gtktextview--add-child-in-window"></a><h3>gtk.TextView.add_child_in_window</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">add_child_in_window</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>which_window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xpos</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ypos</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>child</code></strong> :</span></p></td><td>a <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>which_window</code></strong> :</span></p></td><td>the textview window
292
292
<em class="parameter"><code>child</code></em> should appear in</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>xpos</code></strong> :</span></p></td><td>the X position of <em class="parameter"><code>child</code></em>
293
293
in window coordinates</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>ypos</code></strong> :</span></p></td><td>the Y position of <em class="parameter"><code>child</code></em>
294
294
in window coordinates</td></tr></tbody></table><p>The <code class="methodname">add_child_in_window</code>() method adds
311
311
method to update the child's position. Unfortunately there's no good way to
312
312
detect that scrolling has occurred, using the current API; a possible hack
313
313
would be to update all child positions when the scroll adjustments change or
314
the text buffer changes.</p></div></div><div class="refsect2" lang="en"><a name="method-gtktextview--move-child"></a><h3>gtk.TextView.move_child</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">move_child</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xpos</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ypos</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>child</code></strong> :</span></p></td><td>a child widget in the
314
the text buffer changes.</p></div></div><div class="refsect2" title="gtk.TextView.move_child"><a name="method-gtktextview--move-child"></a><h3>gtk.TextView.move_child</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">move_child</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xpos</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ypos</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>child</code></strong> :</span></p></td><td>a child widget in the
315
315
textview</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>xpos</code></strong> :</span></p></td><td>the new X position in window
316
316
coordinates</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>ypos</code></strong> :</span></p></td><td>the new Y position in window
317
317
coordinates</td></tr></tbody></table><p>The <code class="methodname">move_child</code>() method moves the
318
318
position of <em class="parameter"><code>child</code></em> to the location (in its current
319
319
window) specified by <em class="parameter"><code>xpos</code></em> and
320
<em class="parameter"><code>ypos</code></em>.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--set-wrap-mode"></a><h3>gtk.TextView.set_wrap_mode</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_wrap_mode</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>wrap_mode</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>wrap_mode</code></strong> :</span></p></td><td>a wrap mode value</td></tr></tbody></table><p>The <code class="methodname">set_wrap_mode</code>() method sets the
320
<em class="parameter"><code>ypos</code></em>.</p></div><div class="refsect2" title="gtk.TextView.set_wrap_mode"><a name="method-gtktextview--set-wrap-mode"></a><h3>gtk.TextView.set_wrap_mode</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_wrap_mode</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>wrap_mode</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>wrap_mode</code></strong> :</span></p></td><td>a wrap mode value</td></tr></tbody></table><p>The <code class="methodname">set_wrap_mode</code>() method sets the
321
321
"wrap-mode" property of the textview to the value specified by
322
322
<em class="parameter"><code>wrap_mode</code></em>. The value of wrap_mode can be one of:
323
323
<code class="literal">gtk.WRAP_NONE</code>, <code class="literal">gtk.WRAP_CHAR</code>, <code class="literal">gtk.WRAP_WORD</code>
324
324
or <code class="literal">gtk.WRAP_WORD_CHAR</code>. The "wrap-mode" property defines the wrap
325
325
mode for text that is not influenced by a <a class="link" href="class-gtktexttag.html" title="gtk.TextTag"><code class="classname">gtk.TextTag</code></a> that
326
sets its "wrap_mode" attribute.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--get-wrap-mode"></a><h3>gtk.TextView.get_wrap_mode</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_wrap_mode</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 line wrap setting</td></tr></tbody></table><p>The <code class="methodname">get_wrap_mode</code>() method returns the
326
sets its "wrap_mode" attribute.</p></div><div class="refsect2" title="gtk.TextView.get_wrap_mode"><a name="method-gtktextview--get-wrap-mode"></a><h3>gtk.TextView.get_wrap_mode</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_wrap_mode</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 line wrap setting</td></tr></tbody></table><p>The <code class="methodname">get_wrap_mode</code>() method returns the
327
327
value of the "wrap-mode" property. The value of "wrap-mode" can be one of:
328
328
<code class="literal">gtk.WRAP_NONE</code>, <code class="literal">gtk.WRAP_CHAR</code> or
329
329
<code class="literal">gtk.WRAP_WORD</code>. The "wrap-mode" property defines the wrap
330
330
mode for text that is not influenced by a <a class="link" href="class-gtktexttag.html" title="gtk.TextTag"><code class="classname">gtk.TextTag</code></a> that
331
sets its "wrap_mode" attribute.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--set-editable"></a><h3>gtk.TextView.set_editable</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_editable</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>setting</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>setting</code></strong> :</span></p></td><td>if <code class="literal">True</code> the text is editable
331
sets its "wrap_mode" attribute.</p></div><div class="refsect2" title="gtk.TextView.set_editable"><a name="method-gtktextview--set-editable"></a><h3>gtk.TextView.set_editable</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_editable</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>setting</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>setting</code></strong> :</span></p></td><td>if <code class="literal">True</code> the text is editable
332
332
by default</td></tr></tbody></table><p>The <code class="methodname">set_editable</code>() method sets the
333
333
"editable" property to the value of <em class="parameter"><code>setting</code></em>. If
334
334
<em class="parameter"><code>setting</code></em> is <code class="literal">True</code> the text in
335
335
textview is editable by default. The "editable" property determines the
336
336
editability of the <a class="link" href="class-gtktextview.html" title="gtk.TextView"><code class="classname">gtk.TextView</code></a> text
337
337
that is not influenced by a <a class="link" href="class-gtktexttag.html" title="gtk.TextTag"><code class="classname">gtk.TextTag</code></a> that
338
sets its "editable" attribute.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--get-editable"></a><h3>gtk.TextView.get_editable</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_editable</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><em class="parameter"><code>True</code></em> if text is editable
338
sets its "editable" attribute.</p></div><div class="refsect2" title="gtk.TextView.get_editable"><a name="method-gtktextview--get-editable"></a><h3>gtk.TextView.get_editable</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_editable</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><em class="parameter"><code>True</code></em> if text is editable
339
339
by default</td></tr></tbody></table><p>The <code class="methodname">get_editable</code>() method returns the
340
340
value of the "editable" property. The "editable" property determines the
341
341
editability of the <a class="link" href="class-gtktextview.html" title="gtk.TextView"><code class="classname">gtk.TextView</code></a> text
342
342
that is not influenced by a <a class="link" href="class-gtktexttag.html" title="gtk.TextTag"><code class="classname">gtk.TextTag</code></a> that
343
sets its "editable" attribute.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--set-overwrite"></a><h3>gtk.TextView.set_overwrite</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_overwrite</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>overwrite</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>overwrite</code></strong> :</span></p></td><td>if <code class="literal">True</code> turn on overwrite
344
mode; if <code class="literal">False</code> turn it off</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">set_overwrite</code>() method sets the
343
sets its "editable" attribute.</p></div><div class="refsect2" title="gtk.TextView.set_overwrite"><a name="method-gtktextview--set-overwrite"></a><h3>gtk.TextView.set_overwrite</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_overwrite</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>overwrite</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>overwrite</code></strong> :</span></p></td><td>if <code class="literal">True</code> turn on overwrite
344
mode; if <code class="literal">False</code> turn it off</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">set_overwrite</code>() method sets the
345
345
"overwrite" property to the value of <em class="parameter"><code>overwrite</code></em>. If
346
346
<em class="parameter"><code>overwrite</code></em> is <code class="literal">True</code>, inserted text
347
overwrites the existing text.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--get-overwrite"></a><h3>gtk.TextView.get_overwrite</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_overwrite</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 textview is in
348
overwrite mode</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">get_overwrite</code>() method returns the
347
overwrites the existing text.</p></div><div class="refsect2" title="gtk.TextView.get_overwrite"><a name="method-gtktextview--get-overwrite"></a><h3>gtk.TextView.get_overwrite</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_overwrite</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 textview is in
348
overwrite mode</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">get_overwrite</code>() method returns the
349
349
value of the "overwrite" property. see the <a class="link" href="class-gtktextview.html#method-gtktextview--set-overwrite" title="gtk.TextView.set_overwrite"><code class="methodname">set_overwrite</code>()</a>
350
method for more information.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--set-accepts-tab"></a><h3>gtk.TextView.set_accepts_tab</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_accepts_tab</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>accepts_tab</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>accepts_tab</code></strong> :</span></p></td><td>if <code class="literal">True</code> pressing the
350
method for more information.</p></div><div class="refsect2" title="gtk.TextView.set_accepts_tab"><a name="method-gtktextview--set-accepts-tab"></a><h3>gtk.TextView.set_accepts_tab</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_accepts_tab</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>accepts_tab</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>accepts_tab</code></strong> :</span></p></td><td>if <code class="literal">True</code> pressing the
351
351
<span class="keycap"><strong>Tab</strong></span> key should insert a tab character; if
352
352
<code class="literal">False</code>, pressing the <span class="keycap"><strong>Tab</strong></span> key
353
should move the keyboard focus.</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">set_accepts_tab</code>() method sets the
353
should move the keyboard focus.</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">set_accepts_tab</code>() method sets the
354
354
"accepts_tab" property to the value of
355
355
<em class="parameter"><code>accepts_tab</code></em>. If <em class="parameter"><code>accepts_tab</code></em> is
356
356
<code class="literal">True</code> a tab character is inserted. If
357
357
<em class="parameter"><code>accepts_tab</code></em> is <code class="literal">False</code> the keyboard
358
focus is moved to the next widget in the focus chain.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--get-accepts-tab"></a><h3>gtk.TextView.get_accepts_tab</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_accepts_tab</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 pressing the
358
focus is moved to the next widget in the focus chain.</p></div><div class="refsect2" title="gtk.TextView.get_accepts_tab"><a name="method-gtktextview--get-accepts-tab"></a><h3>gtk.TextView.get_accepts_tab</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_accepts_tab</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 pressing the
359
359
<span class="keycap"><strong>Tab</strong></span> key inserts a tab character,
360
360
<code class="literal">False</code> if pressing the <span class="keycap"><strong>Tab</strong></span> key
361
moves the keyboard focus.</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">get_accepts_tab</code>() method returns
361
moves the keyboard focus.</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">get_accepts_tab</code>() method returns
362
362
the value of the "accepts_tab" property. See the <a class="link" href="class-gtktextview.html#method-gtktextview--set-accepts-tab" title="gtk.TextView.set_accepts_tab"><code class="methodname">set_accepts_tab()</code></a>
363
method for more information.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--set-pixels-above-lines"></a><h3>gtk.TextView.set_pixels_above_lines</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_pixels_above_lines</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixels_above_lines</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>pixels_above_lines</code></strong> :</span></p></td><td>the number of pixels above
363
method for more information.</p></div><div class="refsect2" title="gtk.TextView.set_pixels_above_lines"><a name="method-gtktextview--set-pixels-above-lines"></a><h3>gtk.TextView.set_pixels_above_lines</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_pixels_above_lines</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixels_above_lines</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>pixels_above_lines</code></strong> :</span></p></td><td>the number of pixels above
364
364
paragraphs</td></tr></tbody></table><p>The <code class="methodname">set_pixels_above_lines</code>() method
365
365
sets the "pixels-above-lines" property to the value of
366
366
<em class="parameter"><code>pixels_above_lines</code></em>. The "pixels-above-lines" property
367
367
determines the number of blank pixels to place above textbuffer lines
368
368
(paragraphs) in the textview for text that is not influenced by a <a class="link" href="class-gtktexttag.html" title="gtk.TextTag"><code class="classname">gtk.TextTag</code></a> that
369
sets its "pixels-above-lines" attribute.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--get-pixels-above-lines"></a><h3>gtk.TextView.get_pixels_above_lines</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_pixels_above_lines</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 default number of pixels above
369
sets its "pixels-above-lines" attribute.</p></div><div class="refsect2" title="gtk.TextView.get_pixels_above_lines"><a name="method-gtktextview--get-pixels-above-lines"></a><h3>gtk.TextView.get_pixels_above_lines</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_pixels_above_lines</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 default number of pixels above
370
370
paragraphs</td></tr></tbody></table><p>The <code class="methodname">get_pixels_above_lines</code>() method
371
371
returns the value of the "pixels-above-lines" property. The
372
372
"pixels-above-lines" property determines the number of pixels to put above
373
373
textbuffer lines (paragraphs) in the textview for text that is not
374
374
influenced by a <a class="link" href="class-gtktexttag.html" title="gtk.TextTag"><code class="classname">gtk.TextTag</code></a> that
375
sets its "pixels-above-lines" attribute.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--set-pixels-below-lines"></a><h3>gtk.TextView.set_pixels_below_lines</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_pixels_below_lines</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixels_below_lines</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>pixels_below_lines</code></strong> :</span></p></td><td>the default number of pixels below
375
sets its "pixels-above-lines" attribute.</p></div><div class="refsect2" title="gtk.TextView.set_pixels_below_lines"><a name="method-gtktextview--set-pixels-below-lines"></a><h3>gtk.TextView.set_pixels_below_lines</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_pixels_below_lines</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixels_below_lines</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>pixels_below_lines</code></strong> :</span></p></td><td>the default number of pixels below
376
376
paragraphs</td></tr></tbody></table><p>The <code class="methodname">set_pixels_below_lines</code>() method
377
377
sets the "pixels-below-lines" property to the value of
378
378
<em class="parameter"><code>pixels_below_lines</code></em>. The "pixels-below-lines" property
379
379
determines the number of blank pixels to place below textbuffer lines
380
380
(paragraphs) in the textview for text that is not influenced by a <a class="link" href="class-gtktexttag.html" title="gtk.TextTag"><code class="classname">gtk.TextTag</code></a> that
381
sets its "pixels-below-lines" attribute.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--get-pixels-below-lines"></a><h3>gtk.TextView.get_pixels_below_lines</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_pixels_below_lines</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 default number of blank pixels below
381
sets its "pixels-below-lines" attribute.</p></div><div class="refsect2" title="gtk.TextView.get_pixels_below_lines"><a name="method-gtktextview--get-pixels-below-lines"></a><h3>gtk.TextView.get_pixels_below_lines</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_pixels_below_lines</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 default number of blank pixels below
382
382
paragraphs</td></tr></tbody></table><p>The <code class="methodname">get_pixels_below_lines</code>() method
383
383
returns the value of the "pixels-below-lines" property. The
384
384
"pixels-below-lines" property determines the number of pixels to put below
385
385
textbuffer lines (paragraphs) in the textview for text that is not
386
386
influenced by a <a class="link" href="class-gtktexttag.html" title="gtk.TextTag"><code class="classname">gtk.TextTag</code></a> that
387
sets its "pixels-below-lines" attribute.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--set-pixels-inside-wrap"></a><h3>gtk.TextView.set_pixels_inside_wrap</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_pixels_inside_wrap</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixels_inside_wrap</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>pixels_inside_wrap</code></strong> :</span></p></td><td>the default number of pixels between wrapped
387
sets its "pixels-below-lines" attribute.</p></div><div class="refsect2" title="gtk.TextView.set_pixels_inside_wrap"><a name="method-gtktextview--set-pixels-inside-wrap"></a><h3>gtk.TextView.set_pixels_inside_wrap</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_pixels_inside_wrap</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixels_inside_wrap</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>pixels_inside_wrap</code></strong> :</span></p></td><td>the default number of pixels between wrapped
388
388
lines</td></tr></tbody></table><p>The <code class="methodname">set_pixels_inside_wrap</code>() method
389
389
sets the "pixels-inside_wrap" property to the value of
390
390
<em class="parameter"><code>pixels_inside_wrap</code></em>. The "pixels-inside_wrap" property
391
391
determines the number of blank pixels to place between wrapped textbuffer
392
392
lines (inside paragraphs) for text that is not influenced by a <a class="link" href="class-gtktexttag.html" title="gtk.TextTag"><code class="classname">gtk.TextTag</code></a> that
393
sets its "pixels-inside_wrap" attribute.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--get-pixels-inside-wrap"></a><h3>gtk.TextView.get_pixels_inside_wrap</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_pixels_inside_wrap</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 default number of pixels of blank space
393
sets its "pixels-inside_wrap" attribute.</p></div><div class="refsect2" title="gtk.TextView.get_pixels_inside_wrap"><a name="method-gtktextview--get-pixels-inside-wrap"></a><h3>gtk.TextView.get_pixels_inside_wrap</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_pixels_inside_wrap</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 default number of pixels of blank space
394
394
between wrapped lines</td></tr></tbody></table><p>The <code class="methodname">get_pixels_inside_wrap</code>() method
395
395
returns the value of the "pixels-inside-wrap" property. The
396
396
"pixels-inside-wrap" property determines the number of pixels to put between
397
397
wrapped textbuffer lines (inside paragraphs) for text that is not influenced
398
398
by a <a class="link" href="class-gtktexttag.html" title="gtk.TextTag"><code class="classname">gtk.TextTag</code></a> that
399
sets its "pixels-inside-wrap" attribute.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--set-justification"></a><h3>gtk.TextView.set_justification</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_justification</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>justification</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>justification</code></strong> :</span></p></td><td>the text justification</td></tr></tbody></table><p>The <code class="methodname">set_justification</code>() method sets the
399
sets its "pixels-inside-wrap" attribute.</p></div><div class="refsect2" title="gtk.TextView.set_justification"><a name="method-gtktextview--set-justification"></a><h3>gtk.TextView.set_justification</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_justification</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>justification</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>justification</code></strong> :</span></p></td><td>the text justification</td></tr></tbody></table><p>The <code class="methodname">set_justification</code>() method sets the
400
400
"justification" property to the value of
401
401
<em class="parameter"><code>justification</code></em>. The value of justification must be one
402
402
of: <code class="literal">gtk.JUSTIFY_LEFT</code>,
412
412
or <code class="literal">gtk.JUSTIFY_FILL</code>. The "justification" property
413
413
determines the justification of text in the textview that is not influenced
414
414
by a <a class="link" href="class-gtktexttag.html" title="gtk.TextTag"><code class="classname">gtk.TextTag</code></a> that
415
set its "justification" attribute.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--set-left-margin"></a><h3>gtk.TextView.set_left_margin</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_left_margin</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>left_margin</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>left_margin</code></strong> :</span></p></td><td>the default left margin in pixels</td></tr></tbody></table><p>The <code class="methodname">set_left_margin</code>() method sets the
415
set its "justification" attribute.</p></div><div class="refsect2" title="gtk.TextView.set_left_margin"><a name="method-gtktextview--set-left-margin"></a><h3>gtk.TextView.set_left_margin</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_left_margin</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>left_margin</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>left_margin</code></strong> :</span></p></td><td>the default left margin in pixels</td></tr></tbody></table><p>The <code class="methodname">set_left_margin</code>() method sets the
416
416
"left-margin" property to the value of <em class="parameter"><code>left_margin</code></em>.
417
417
The "left-margin"property determines the number of pixels of space for the
418
418
left margin of text that is not influenced by a <a class="link" href="class-gtktexttag.html" title="gtk.TextTag"><code class="classname">gtk.TextTag</code></a> that
419
sets its "left_margin" attribute.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--get-left-margin"></a><h3>gtk.TextView.get_left_margin</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_left_margin</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 default left margin in
419
sets its "left_margin" attribute.</p></div><div class="refsect2" title="gtk.TextView.get_left_margin"><a name="method-gtktextview--get-left-margin"></a><h3>gtk.TextView.get_left_margin</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_left_margin</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 default left margin in
420
420
pixels</td></tr></tbody></table><p>The <code class="methodname">get_left_margin</code>() method returns
421
421
the value of the "left_margin" property. The "left-margin"property
422
422
determines the number of pixels of space for the left margin of text that
423
423
is not influenced by a <a class="link" href="class-gtktexttag.html" title="gtk.TextTag"><code class="classname">gtk.TextTag</code></a> that
424
sets its "left_margin" attribute.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--set-right-margin"></a><h3>gtk.TextView.set_right_margin</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_right_margin</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>right_margin</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>right_margin</code></strong> :</span></p></td><td>the default right margin in
424
sets its "left_margin" attribute.</p></div><div class="refsect2" title="gtk.TextView.set_right_margin"><a name="method-gtktextview--set-right-margin"></a><h3>gtk.TextView.set_right_margin</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_right_margin</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>right_margin</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>right_margin</code></strong> :</span></p></td><td>the default right margin in
425
425
pixels</td></tr></tbody></table><p>The <code class="methodname">set_right_margin</code>() method sets the
426
426
"right-margin" property to the value of <em class="parameter"><code>right_margin</code></em>.
427
427
The "right-margin"property determines the number of pixels of space for the
428
428
right margin of text that is not influenced by a <a class="link" href="class-gtktexttag.html" title="gtk.TextTag"><code class="classname">gtk.TextTag</code></a> that
429
sets its "right_margin" attribute.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--get-right-margin"></a><h3>gtk.TextView.get_right_margin</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_right_margin</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 default right margin in
429
sets its "right_margin" attribute.</p></div><div class="refsect2" title="gtk.TextView.get_right_margin"><a name="method-gtktextview--get-right-margin"></a><h3>gtk.TextView.get_right_margin</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_right_margin</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 default right margin in
430
430
pixels</td></tr></tbody></table><p>The <code class="methodname">get_right_margin</code>() method returns
431
431
the value of the "right_margin" property. The "right-margin"property
432
432
determines the number of pixels of space for the right margin of text that
433
433
is not influenced by a <a class="link" href="class-gtktexttag.html" title="gtk.TextTag"><code class="classname">gtk.TextTag</code></a> that
434
sets its "right_margin" attribute.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--set-indent"></a><h3>gtk.TextView.set_indent</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_indent</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>indent</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>indent</code></strong> :</span></p></td><td>the default indentation in
434
sets its "right_margin" attribute.</p></div><div class="refsect2" title="gtk.TextView.set_indent"><a name="method-gtktextview--set-indent"></a><h3>gtk.TextView.set_indent</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_indent</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>indent</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>indent</code></strong> :</span></p></td><td>the default indentation in
435
435
pixels</td></tr></tbody></table><p>The <code class="methodname">set_indent</code>() method sets the
436
436
"indent" property to the value of <em class="parameter"><code>indent</code></em>. The
437
437
"indent" property determines the indentation for textview paragraphs that
438
438
are not influenced by a <a class="link" href="class-gtktexttag.html" title="gtk.TextTag"><code class="classname">gtk.TextTag</code></a> that
439
sets its "indent" attribute. The indentation may be negative.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--get-indent"></a><h3>gtk.TextView.get_indent</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_indent</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 default number of pixels of
439
sets its "indent" attribute. The indentation may be negative.</p></div><div class="refsect2" title="gtk.TextView.get_indent"><a name="method-gtktextview--get-indent"></a><h3>gtk.TextView.get_indent</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_indent</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 default number of pixels of
440
440
indentation</td></tr></tbody></table><p>The <code class="methodname">get_indent</code>() method returns the
441
441
value of the "indent" property. The "indent" property determines the
442
442
indentation for textview paragraphs that are not influenced by a <a class="link" href="class-gtktexttag.html" title="gtk.TextTag"><code class="classname">gtk.TextTag</code></a> that
443
sets its "indent" attribute. The indentation may be negative.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--set-tabs"></a><h3>gtk.TextView.set_tabs</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_tabs</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>tabs</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>tabs</code></strong> :</span></p></td><td>the default tabs as a <a class="link" href="class-pangotabarray.html" title="pango.TabArray"><code class="classname">pango.TabArray</code></a></td></tr></tbody></table><p>The <code class="methodname">set_tabs</code>() method sets the "tabs"
443
sets its "indent" attribute. The indentation may be negative.</p></div><div class="refsect2" title="gtk.TextView.set_tabs"><a name="method-gtktextview--set-tabs"></a><h3>gtk.TextView.set_tabs</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_tabs</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>tabs</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>tabs</code></strong> :</span></p></td><td>the default tabs as a <a class="link" href="class-pangotabarray.html" title="pango.TabArray"><code class="classname">pango.TabArray</code></a></td></tr></tbody></table><p>The <code class="methodname">set_tabs</code>() method sets the "tabs"
444
444
property to a copy of the value of <em class="parameter"><code>tabs</code></em>. The "tabs"
445
445
property contains the custom tab stops for the textview paragraphs that are
446
446
not influenced by a <a class="link" href="class-gtktexttag.html" title="gtk.TextTag"><code class="classname">gtk.TextTag</code></a> that
447
sets its "tabs" attribute.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--get-tabs"></a><h3>gtk.TextView.get_tabs</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_tabs</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 copy of default tab array, or
447
sets its "tabs" attribute.</p></div><div class="refsect2" title="gtk.TextView.get_tabs"><a name="method-gtktextview--get-tabs"></a><h3>gtk.TextView.get_tabs</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_tabs</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 copy of default tab array, or
448
448
<code class="literal">None</code> if "standard" tabs are used</td></tr></tbody></table><p>The <code class="methodname">get_tabs</code>() method returns the value
449
449
of the "tabs" property. The "tabs" property contains the custom tab stops
450
450
for the textview paragraphs that are not influenced by a <a class="link" href="class-gtktexttag.html" title="gtk.TextTag"><code class="classname">gtk.TextTag</code></a> that
451
451
sets its "tabs" attribute. The returned value will be
452
<code class="literal">None</code> if "standard" (8-space) tabs are used.</p></div><div class="refsect2" lang="en"><a name="method-gtktextview--get-default-attributes"></a><h3>gtk.TextView.get_default_attributes</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_default_attributes</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-gtktextattributes.html" title="gtk.TextAttributes"><code class="classname">gtk.TextAttributes</code></a></td></tr></tbody></table><p>The <code class="methodname">get_default_attributes</code>() method
452
<code class="literal">None</code> if "standard" (8-space) tabs are used.</p></div><div class="refsect2" title="gtk.TextView.get_default_attributes"><a name="method-gtktextview--get-default-attributes"></a><h3>gtk.TextView.get_default_attributes</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_default_attributes</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-gtktextattributes.html" title="gtk.TextAttributes"><code class="classname">gtk.TextAttributes</code></a></td></tr></tbody></table><p>The <code class="methodname">get_default_attributes</code>() method
453
453
returns a copy of the default <a class="link" href="class-gtktextattributes.html" title="gtk.TextAttributes"><code class="classname">gtk.TextAttributes</code></a>.
454
454
These attributes are used for text unless the text is influenced by a <a class="link" href="class-gtktexttag.html" title="gtk.TextTag"><code class="classname">gtk.TextTag</code></a>.
455
455
You'd typically pass the default attributes in to the <a class="link" href="class-gtktextiter.html#method-gtktextiter--get-attributes" title="gtk.TextIter.get_attributes"><code class="methodname">gtk.TextIter.get_attributes</code>()</a>
456
method to get the attributes in effect at a given text position.</p></div></div><div class="refsect1" lang="en"><a name="id3761887"></a><h2>Signals</h2><div class="refsect2" lang="en"><a name="signal-gtktextview--backspace"></a><h3>The "backspace" gtk.TextView Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>textview</code></em> :</span></p></td><td>the object which received the signal.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
456
method to get the attributes in effect at a given text position.</p></div></div><div class="refsect1" title="Signals"><a name="id4071917"></a><h2>Signals</h2><div class="refsect2" title='The "backspace" gtk.TextView Signal'><a name="signal-gtktextview--backspace"></a><h3>The "backspace" gtk.TextView Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>textview</code></em> :</span></p></td><td>the object which received the signal.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
457
457
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
458
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if any)</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This signal is available in GTK+ 2.10 and above.</p></div><p>The "backspace" signal is emitted when the
459
<span class="keycap"><strong>Backspace</strong></span> key is pressed.</p></div><div class="refsect2" lang="en"><a name="signal-gtktextview--copy-clipboard"></a><h3>The "copy-clipboard" gtk.TextView Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>textview</code></em> :</span></p></td><td>the textview that received the
458
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if any)</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This signal is available in GTK+ 2.10 and above.</p></div><p>The "backspace" signal is emitted when the
459
<span class="keycap"><strong>Backspace</strong></span> key is pressed.</p></div><div class="refsect2" title='The "copy-clipboard" gtk.TextView Signal'><a name="signal-gtktextview--copy-clipboard"></a><h3>The "copy-clipboard" gtk.TextView Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>textview</code></em> :</span></p></td><td>the textview that received the
460
460
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
461
461
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
462
462
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
463
463
any)</td></tr></tbody></table><p>The "copy-clipboard" signal is emitted when a selection is
464
copied to the clipboard from <em class="parameter"><code>textview</code></em>.</p></div><div class="refsect2" lang="en"><a name="signal-gtktextview--cut-clipboard"></a><h3>The "cut-clipboard" gtk.TextView Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>textview</code></em> :</span></p></td><td>the textview that received the
464
copied to the clipboard from <em class="parameter"><code>textview</code></em>.</p></div><div class="refsect2" title='The "cut-clipboard" gtk.TextView Signal'><a name="signal-gtktextview--cut-clipboard"></a><h3>The "cut-clipboard" gtk.TextView Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>textview</code></em> :</span></p></td><td>the textview that received the
465
465
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
466
466
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
467
467
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
468
468
any)</td></tr></tbody></table><p>The "cut-clipboard" signal is emitted when a selection is cut
469
from <em class="parameter"><code>textview</code></em> to the clipboard.</p></div><div class="refsect2" lang="en"><a name="signal-gtktextview--delete-from-cursor"></a><h3>The "delete-from-cursor" gtk.TextView Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>delete_type</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>count</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>textview</code></em> :</span></p></td><td>the textview that received the
469
from <em class="parameter"><code>textview</code></em> to the clipboard.</p></div><div class="refsect2" title='The "delete-from-cursor" gtk.TextView Signal'><a name="signal-gtktextview--delete-from-cursor"></a><h3>The "delete-from-cursor" gtk.TextView Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>delete_type</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>count</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>textview</code></em> :</span></p></td><td>the textview that received the
470
470
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>delete_type</code></em> :</span></p></td><td>the type of deletion</td></tr><tr><td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td><td>the number of deletions to
471
471
do</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
472
472
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
475
475
the type specified by <em class="parameter"><code>delete_type</code></em> is initiated by
476
476
user action (e.g. pressing the <span class="keycap"><strong>Delete</strong></span> or
477
477
<span class="keycap"><strong>Backspace</strong></span> keys). The value of
478
<em class="parameter"><code>delete_type</code></em> must be one of:</p><div class="itemizedlist"><ul type="disc"><li><code class="literal">gtk.DELETE_CHARS</code></li><li><code class="literal">gtk.DELETE_WORD_ENDS</code></li><li><code class="literal">gtk.DELETE_WORDS</code></li><li><code class="literal">gtk.DELETE_DISPLAY_LINES</code></li><li><code class="literal">gtk.DELETE_DISPLAY_LINE_ENDS</code></li><li><code class="literal">gtk.DELETE_PARAGRAPH_ENDS</code></li><li><code class="literal">gtk.DELETE_PARAGRAPHS</code></li><li><code class="literal">gtk.DELETE_WHITESPACE</code></li></ul></div><p><em class="parameter"><code>count</code></em> specifies the number of times that
479
deletion should be applied.</p></div><div class="refsect2" lang="en"><a name="signal-gtktextview--insert-at-cursor"></a><h3>The "insert-at-cursor" gtk.TextView Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>string</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>textview</code></em> :</span></p></td><td>the textview that received the
478
<em class="parameter"><code>delete_type</code></em> must be one of:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><code class="literal">gtk.DELETE_CHARS</code></li><li class="listitem"><code class="literal">gtk.DELETE_WORD_ENDS</code></li><li class="listitem"><code class="literal">gtk.DELETE_WORDS</code></li><li class="listitem"><code class="literal">gtk.DELETE_DISPLAY_LINES</code></li><li class="listitem"><code class="literal">gtk.DELETE_DISPLAY_LINE_ENDS</code></li><li class="listitem"><code class="literal">gtk.DELETE_PARAGRAPH_ENDS</code></li><li class="listitem"><code class="literal">gtk.DELETE_PARAGRAPHS</code></li><li class="listitem"><code class="literal">gtk.DELETE_WHITESPACE</code></li></ul></div><p><em class="parameter"><code>count</code></em> specifies the number of times that
479
deletion should be applied.</p></div><div class="refsect2" title='The "insert-at-cursor" gtk.TextView Signal'><a name="signal-gtktextview--insert-at-cursor"></a><h3>The "insert-at-cursor" gtk.TextView Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>string</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>textview</code></em> :</span></p></td><td>the textview that received the
480
480
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>string</code></em> :</span></p></td><td>the text to be inserted</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
481
481
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
482
482
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
483
483
any)</td></tr></tbody></table><p>The "insert-at-cursor" signal is emitted when
484
484
<em class="parameter"><code>string</code></em> is being inserted in
485
<em class="parameter"><code>textview</code></em>.</p></div><div class="refsect2" lang="en"><a name="signal-gtktextview--move-cursor"></a><h3>The "move-cursor" gtk.TextView Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>step_size</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>count</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>extend_selection</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>textview</code></em> :</span></p></td><td>the textview that received the
485
<em class="parameter"><code>textview</code></em>.</p></div><div class="refsect2" title='The "move-cursor" gtk.TextView Signal'><a name="signal-gtktextview--move-cursor"></a><h3>The "move-cursor" gtk.TextView Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>step_size</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>count</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>extend_selection</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>textview</code></em> :</span></p></td><td>the textview that received the
486
486
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>step_size</code></em> :</span></p></td><td>the step size to move</td></tr><tr><td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td><td>the number of steps to
487
487
move</td></tr><tr><td><p><span class="term"><em class="parameter"><code>extend_selection</code></em> :</span></p></td><td>if <code class="literal">True</code> extend the
488
488
selection</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
527
527
<em class="parameter"><code>extend_selection</code></em> set to
528
528
<code class="literal">False</code></td></tr><tr><td><p><span class="term"><span class="keycap"><strong>Shift</strong></span>+<span class="keycap"><strong>Control</strong></span>+<span class="keycap"><strong>Page Up</strong></span></span></p></td><td>Page horizontally with
529
529
<em class="parameter"><code>extend_selection</code></em> set to
530
<code class="literal">True</code></td></tr></tbody></table><p></p></div><div class="refsect2" lang="en"><a name="signal-gtktextview--paste-clipboard"></a><h3>The "paste-clipboard" gtk.TextView Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>textview</code></em> :</span></p></td><td>the textview that received the
530
<code class="literal">True</code></td></tr></tbody></table><p></p></div><div class="refsect2" title='The "paste-clipboard" gtk.TextView Signal'><a name="signal-gtktextview--paste-clipboard"></a><h3>The "paste-clipboard" gtk.TextView Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>textview</code></em> :</span></p></td><td>the textview that received the
531
531
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
532
532
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
533
533
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
534
534
any)</td></tr></tbody></table><p>The "paste-clipboard" signal is emitted when the contents of the
535
clipboard are pasted into <em class="parameter"><code>textview</code></em>.</p></div><div class="refsect2" lang="en"><a name="signal-gtktextview--populate-popup"></a><h3>The "populate-popup" gtk.TextView Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>menu</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>textview</code></em> :</span></p></td><td>the textview that received the
535
clipboard are pasted into <em class="parameter"><code>textview</code></em>.</p></div><div class="refsect2" title='The "populate-popup" gtk.TextView Signal'><a name="signal-gtktextview--populate-popup"></a><h3>The "populate-popup" gtk.TextView Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>menu</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>textview</code></em> :</span></p></td><td>the textview that received the
536
536
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>menu</code></em> :</span></p></td><td>the menu to populate</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
537
537
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
538
538
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
539
539
any)</td></tr></tbody></table><p>The "populate-popup" signal is emitted when the popup menu
540
540
(specified by <em class="parameter"><code>menu</code></em>) associated with
541
<em class="parameter"><code>textview</code></em> needs to be populated.</p></div><div class="refsect2" lang="en"><a name="signal-gtktextview--select-all"></a><h3>The "select-all" gtk.TextView Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>select</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>textview</code></em> :</span></p></td><td>the textview that received the
541
<em class="parameter"><code>textview</code></em> needs to be populated.</p></div><div class="refsect2" title='The "select-all" gtk.TextView Signal'><a name="signal-gtktextview--select-all"></a><h3>The "select-all" gtk.TextView Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>select</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>textview</code></em> :</span></p></td><td>the textview that received the
542
542
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>select</code></em> :</span></p></td><td>if <code class="literal">True</code> select the buffer
543
543
contents; otherwise deselect the buffer
544
544
contents</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
545
545
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
546
546
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
547
any)</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This signal is available in GTK+ 2.2 and above.</p></div><p>The "select-all" signal is emitted when the user presses one
548
of:</p><div class="itemizedlist"><ul type="disc"><li><span class="keycap"><strong>Control</strong></span>+<span class="keycap"><strong>a</strong></span> or
547
any)</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This signal is available in GTK+ 2.2 and above.</p></div><p>The "select-all" signal is emitted when the user presses one
548
of:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><span class="keycap"><strong>Control</strong></span>+<span class="keycap"><strong>a</strong></span> or
549
549
<span class="keycap"><strong>Control</strong></span>+<span class="keycap"><strong>/</strong></span> to
550
select all text in a buffer</li><li><span class="keycap"><strong>Control</strong></span>+<span class="keycap"><strong>\</strong></span> to
551
deselect all text in a buffer</li></ul></div><p></p></div><div class="refsect2" lang="en"><a name="signal-gtktextview--set-anchor"></a><h3>The "set-anchor" gtk.TextView Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>textview</code></em> :</span></p></td><td>the textview that received the
550
select all text in a buffer</li><li class="listitem"><span class="keycap"><strong>Control</strong></span>+<span class="keycap"><strong>\</strong></span> to
551
deselect all text in a buffer</li></ul></div><p></p></div><div class="refsect2" title='The "set-anchor" gtk.TextView Signal'><a name="signal-gtktextview--set-anchor"></a><h3>The "set-anchor" gtk.TextView Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>textview</code></em> :</span></p></td><td>the textview that received the
552
552
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
553
553
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
554
554
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
555
555
any)</td></tr></tbody></table><p>The "set-anchor" signal is emitted when an application calls the
556
556
<PYGTKDOCLINK HREF="method-gobject--emit"><code class="methodname">GObject.emit()</code>()</PYGTKDOCLINK>
557
method on textview with "set-anchor" as the signal.</p></div><div class="refsect2" lang="en"><a name="signal-gtktextview--set-scroll-adjustments"></a><h3>The "set-scroll-adjustments" gtk.TextView Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>hadjustment</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>vadjustment</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>textview</code></em> :</span></p></td><td>the textview that received the
557
method on textview with "set-anchor" as the signal.</p></div><div class="refsect2" title='The "set-scroll-adjustments" gtk.TextView Signal'><a name="signal-gtktextview--set-scroll-adjustments"></a><h3>The "set-scroll-adjustments" gtk.TextView Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>hadjustment</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>vadjustment</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>textview</code></em> :</span></p></td><td>the textview that received the
558
558
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>hadjustment</code></em> :</span></p></td><td>the horizontal adjustment</td></tr><tr><td><p><span class="term"><em class="parameter"><code>vadjustment</code></em> :</span></p></td><td>the vertical adjustment</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
559
559
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
560
560
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
561
561
any)</td></tr></tbody></table><p>The "set-scroll-adjustments" signal is emitted when one or both
562
562
adjustments (specified by <em class="parameter"><code>hadjustment</code></em> and
563
563
<em class="parameter"><code>vadjustment</code></em>) are set on
564
<em class="parameter"><code>textview</code></em>.</p></div><div class="refsect2" lang="en"><a name="signal-gtktextview--toggle-overwrite"></a><h3>The "toggle-overwrite" gtk.TextView Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>textview</code></em> :</span></p></td><td>the textview that received the
564
<em class="parameter"><code>textview</code></em>.</p></div><div class="refsect2" title='The "toggle-overwrite" gtk.TextView Signal'><a name="signal-gtktextview--toggle-overwrite"></a><h3>The "toggle-overwrite" gtk.TextView Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>textview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>textview</code></em> :</span></p></td><td>the textview that received the
565
565
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
566
566
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
567
567
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if