[gnome-devel-docs] tutorials python: textview page without repetition of a method



commit 2218a09e14fa4e1ff472d20397b2998100bd6e26
Author: Marta Maria Casetti <mmcasetti gmail com>
Date:   Wed Jun 20 11:53:00 2012 +0100

    tutorials python: textview page without repetition of a method

 platform-demos/C/textview.py.page |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/platform-demos/C/textview.py.page b/platform-demos/C/textview.py.page
index 7f4797f..a0c9608 100644
--- a/platform-demos/C/textview.py.page
+++ b/platform-demos/C/textview.py.page
@@ -46,7 +46,7 @@
   <section id="methods">
   <title>Useful methods for a TextView widget</title>
   <p>An explanation of how to deal with strings and Unicode (and a recap of what these things are) can be found <link xref="strings.py.page">here</link>.</p>
-  <p>A <code>Gtk.TextView</code> displays the text stored in a <code>Gtk.TextBuffer</code>. However, most text manipulation is accomplished with iterators, represented by a <code>Gtk.TextIter</code> - a position between two characters in the text buffer. Iterators are not valid indefinitely; whenever the buffer is modified in a way that affects the contents of the buffer, all outstanding iterators become invalid. Because of this, iterators canât be used to preserve positions across buffer modifications. To preserve a position, we use a <code>Gtk.TextMark</code>, that can be set visible with <code>visible(True)</code>. A text buffer contains two built-in marks; an "insert" mark (the position of the cursor) and the "selection_bound" mark. Both of them can be retrieved, using <code>Gtk.TextBuffer.get_insert()</code> and <code>Gtk.TextBuffer.get_selection_bound()</code>, respectively.</p>
+  <p>A <code>Gtk.TextView</code> displays the text stored in a <code>Gtk.TextBuffer</code>. However, most text manipulation is accomplished with iterators, represented by a <code>Gtk.TextIter</code> - a position between two characters in the text buffer. Iterators are not valid indefinitely; whenever the buffer is modified in a way that affects the contents of the buffer, all outstanding iterators become invalid. Because of this, iterators canât be used to preserve positions across buffer modifications. To preserve a position, we use a <code>Gtk.TextMark</code>, that can be set visible with <code>visible(True)</code>. A text buffer contains two built-in marks; an "insert" mark (the position of the cursor) and the "selection_bound" mark.</p>
   <p>Methods for a TextView widget:</p>
   <list>
     <item><p>The TextView widget is by default editable. If you prefer otherwise, use <code>set_editable(False)</code>. If the buffer has no editable text, it might be a good idea to use <code>set_cursor_visible(False)</code> as well.</p></item>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]