This file is indexed.

/usr/share/gtk-doc/html/pygtk/class-gtktextview.html is in python-gtk2-doc 2.24.0-4ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
<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.2"><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="id3969747"></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>):
<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><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktextview.html#method-gtktextview--get-hadjustment" title="gtk.TextView.get_hadjustment">get_hadjustment</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-vadjustment" title="gtk.TextView.get_vadjustment">get_vadjustment</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" title="Ancestry"><a name="id3971543"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
  +-- <a class="link" href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
    +-- <a class="link" href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a>
      +-- <a class="link" href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a>
        +-- <a class="link" href="class-gtktextview.html" title="gtk.TextView">gtk.TextView</a>
</pre></div><div class="refsect1" title="Implemented Interfaces"><a name="id3971588"></a><h2>Implemented Interfaces</h2><p>
			<a class="link" href="class-gtktextview.html" title="gtk.TextView"><code class="classname">gtk.TextView</code></a>
			implements 
			<a class="link" href="class-gtkbuildable.html" title="gtk.Buildable"><code class="classname">gtk.Buildable</code></a>
		</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
<span class="keycap"><strong>Tab</strong></span> will result in a tab character being entered; otherwise
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
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
shown</td></tr><tr valign="top"><td valign="top">"editable"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, the text can be modified by
the user by default</td></tr><tr valign="top"><td valign="top">"indent"</td><td valign="top">Read-Write</td><td valign="top">The default amount to indent the paragraph, in
pixels</td></tr><tr valign="top"><td valign="top">"justification"</td><td valign="top">Read-Write</td><td valign="top">The default text justification:
<code class="literal">gtk.JUSTIFY_LEFT</code>, <code class="literal">gtk.JUSTIFY_RIGHT</code>,
<code class="literal">gtk.JUSTIFY_CENTER</code> or
<code class="literal">gtk.JUSTIFY_FILL</code></td></tr><tr valign="top"><td valign="top">"left-margin"</td><td valign="top">Read-Write</td><td valign="top">The default width of the left margin in pixels</td></tr><tr valign="top"><td valign="top">"overwrite"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, the entered text overwrites
	      existing contents. Available in GTK+ 2.4 and above.</td></tr><tr valign="top"><td valign="top">"pixels-above-lines"</td><td valign="top">Read-Write</td><td valign="top">The default number of pixels of blank space above
paragraphs</td></tr><tr valign="top"><td valign="top">"pixels-below-lines"</td><td valign="top">Read-Write</td><td valign="top">The default number of pixels of blank space below
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
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:
<code class="literal">gtk.WRAP_NONE</code>, <code class="literal">gtk.WRAP_CHAR</code> or
<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
which to draw error-indication underlines. Available in GTK+ 2.4 and
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>
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>
object. A textview provides a set of attributes for the default display of
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
override the attributes set on a <a class="link" href="class-gtktextview.html" title="gtk.TextView"><code class="classname">gtk.TextView</code></a>
widget. Since a <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a>
can be associated with multiple <a class="link" href="class-gtktextview.html" title="gtk.TextView"><code class="classname">gtk.TextView</code></a>
widgets each having a different set of default attributes, the display of
the same text in different textview widgets can be quite different except
for those attributes that are overridden by texttags.</p><p>A <a class="link" href="class-gtktextview.html" title="gtk.TextView"><code class="classname">gtk.TextView</code></a>
widget has several <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a>
widgets most of which are not displayed by default:</p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><code class="literal">gtk.TEXT_WINDOW_WIDGET</code></span></p></td><td>The widget window</td></tr><tr><td><p><span class="term"><code class="literal">gtk.TEXT_WINDOW_TEXT</code></span></p></td><td>The window that holds the text</td></tr><tr><td><p><span class="term"><code class="literal">gtk.TEXT_WINDOW_LEFT</code></span></p></td><td>The left border window - not displayed by
default</td></tr><tr><td><p><span class="term"><code class="literal">gtk.TEXT_WINDOW_RIGHT</code></span></p></td><td>The right border window - not displayed by
default</td></tr><tr><td><p><span class="term"><code class="literal">gtk.TEXT_WINDOW_TOP</code></span></p></td><td>The top border window - not displayed by
default</td></tr><tr><td><p><span class="term"><code class="literal">gtk.TEXT_WINDOW_BOTTOM</code></span></p></td><td>The bottom border window - not displayed by
default</td></tr><tr><td><p><span class="term"><code class="literal">gtk.TEXT_WINDOW_PRIVATE</code></span></p></td><td>An internal inaccessible <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr></tbody></table><p>The border windows are not created until they are given a size by
using 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> 
method.</p><p>Depending on the wrap mode of the textview a textbuffer line may be
displayed as more than one screen display line. The textview has methods to
navigate through the display lines.</p><p>A <a class="link" href="class-gtktextchildanchor.html" title="gtk.TextChildAnchor"><code class="classname">gtk.TextChildAnchor</code></a> 
in a <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a>
provides a place for a <code class="literal">PyGTK</code> widget to be placed in a
<a class="link" href="class-gtktextview.html" title="gtk.TextView"><code class="classname">gtk.TextView</code></a>. Each
textview displaying the same textbuffer with a child anchor must have a
different widget placed at that child anchor. In addition, a widget can be
placed at a specific location in one of the above <a class="link" href="class-gtktextview.html" title="gtk.TextView"><code class="classname">gtk.TextView</code></a>
windows using the <a class="link" href="class-gtktextview.html#method-gtktextview--add-child-in-window" title="gtk.TextView.add_child_in_window"><code class="methodname">add_child_in_window</code>()</a> 
method. The widget will be clipped to the window boundaries if it is larger
than the window or located where it extends beyond the window
boundaries.</p><p>A <a class="link" href="class-gtktextview.html" title="gtk.TextView"><code class="classname">gtk.TextView</code></a> has a
default popup menu that includes the usual cut, copy and paste
capabilities. In PyGTK 2.2 <a class="link" href="class-gtkclipboard.html" title="gtk.Clipboard"><code class="classname">gtk.Clipboard</code></a>
objects are supported so your program can access the contents of the cut,
copy and paste clipboard through the
<code class="literal">gdk.SELECTION_CLIPBOARD</code> clipboard. Also the selected text
in a <a class="link" href="class-gtktextview.html" title="gtk.TextView"><code class="classname">gtk.TextView</code></a> is
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>
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>
widget displaying the <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a>
specified by <em class="parameter"><code>buffer</code></em>. If <em class="parameter"><code>buffer</code></em>
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>
will be created. One textbuffer can be shared among many widgets.</p></div><div class="refsect1" title="Methods"><a name="id3973739"></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>
specified by <em class="parameter"><code>buffer</code></em> as the textbuffer being displayed
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
<a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a>
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>
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
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
arguments; if <code class="literal">False</code>, just get <em class="parameter"><code>iter</code></em>
on screen</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>xalign</code></strong> :</span></p></td><td>the horizontal alignment of
<em class="parameter"><code>iter</code></em> within visible area.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>yalign</code></strong> :</span></p></td><td>the vertical alignment of
<em class="parameter"><code>iter</code></em> within visible area</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 scrolling
occurred</td></tr></tbody></table><p>The <code class="methodname">scroll_to_iter</code>() method scrolls the
textview so that the <a class="link" href="class-gtktextiter.html" title="gtk.TextIter"><code class="classname">gtk.TextIter</code></a>
location specified by <em class="parameter"><code>iter</code></em> is on the screen in the
position indicated by <em class="parameter"><code>xalign</code></em> and
<em class="parameter"><code>yalign</code></em>. If <em class="parameter"><code>use_align</code></em> is
<code class="literal">True</code> the alignments specify the fraction of screen space
to the left of or above the location of <em class="parameter"><code>iter</code></em>. If
<em class="parameter"><code>use_align</code></em> is <code class="literal">False</code>, the text
scrolls the minimal distance to get <em class="parameter"><code>iter</code></em> on screen,
possibly not scrolling at all. The effective screen for purposes of this
method is reduced by a margin of size specified by
<em class="parameter"><code>within_margin</code></em>.</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method uses the currently-computed height of the lines in
the text buffer. The line heights are computed in an idle handler so this
method may not have the desired effect if it's called before the height
computations are complete. To avoid oddness, consider using the <a class="link" href="class-gtktextview.html#method-gtktextview--scroll-to-mark" title="gtk.TextView.scroll_to_mark"><code class="methodname">scroll_to_mark</code>()</a> 
method that saves a point to be scrolled to after line validation.</p></div></div><div class="refsect2" title="gtk.TextView.scroll_to_mark"><a name="method-gtktextview--scroll-to-mark"></a><h3>gtk.TextView.scroll_to_mark</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">scroll_to_mark</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></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>
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
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
arguments; if <code class="literal">False</code>, just get <em class="parameter"><code>mark</code></em>
on screen</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>xalign</code></strong> :</span></p></td><td>the horizontal alignment of
<em class="parameter"><code>mark</code></em> within the visible area.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>yalign</code></strong> :</span></p></td><td>the vertical alignment of
<em class="parameter"><code>mark</code></em> within the visible area</td></tr></tbody></table><p>The <code class="methodname">scroll_to_mark</code>() method scrolls the
textview so that the <a class="link" href="class-gtktextmark.html" title="gtk.TextMark"><code class="classname">gtk.TextMark</code></a>
location specified by <em class="parameter"><code>mark</code></em> is on the screen in the
position specified by <em class="parameter"><code>xalign</code></em> and
<em class="parameter"><code>yalign</code></em>. If <em class="parameter"><code>use_align</code></em> is
<code class="literal">True</code> the alignments specify the fraction of screen space
to the left of or above the location of <em class="parameter"><code>mark</code></em>. If
<em class="parameter"><code>use_align</code></em> is <code class="literal">False</code>, the text
scrolls the minimal distance to get <em class="parameter"><code>mark</code></em> on screen,
possibly not scrolling at all. The effective screen for purposes of this
function is reduced by a margin of size specified by
<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
the textbuffer for textview</td></tr></tbody></table><p>The <code class="methodname">scroll_mark_onscreen</code>() method
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>
location specified by <em class="parameter"><code>mark</code></em> within the visible area of
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>
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
<em class="parameter"><code>mark</code></em> moved (wasn't already
on screen)</td></tr></tbody></table><p>The <code class="methodname">move_mark_onscreen</code>() moves the
<a class="link" href="class-gtktextmark.html" title="gtk.TextMark"><code class="classname">gtk.TextMark</code></a>
location specified by <em class="parameter"><code>mark</code></em> to a location within the
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
moved.</td></tr></tbody></table><p>The <code class="methodname">place_cursor_onscreen</code>() method
moves the cursor to a new location within the currently visible region of
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
<a class="link" href="class-gdkrectangle.html" title="gtk.gdk.Rectangle"><code class="classname">gtk.gdk.Rectangle</code></a>
containing the coordinates of the currently-visible region of the buffer.
The rectangle is in buffer coordinates 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> 
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
cursor</td></tr></tbody></table><p>The <code class="methodname">set_cursor_visible</code>() method sets
the "cursor-visible" property to the value of
<em class="parameter"><code>setting</code></em>. If <em class="parameter"><code>setting</code></em> is
<code class="literal">True</code> the cursor is visible; if <code class="literal">False</code>,
it is not. A buffer with no editable text probably shouldn't have a visible
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
is visible</td></tr></tbody></table><p>The <code class="methodname">get_cursor_visible</code>() method returns
the value of the "cursor-visible" property that determines if the insertion
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>
containing the bounds of the character at
<em class="parameter"><code>iter</code></em></td></tr></tbody></table><p>The <code class="methodname">get_iter_location</code>() method returns
a <a class="link" href="class-gdkrectangle.html" title="gtk.gdk.Rectangle"><code class="classname">gtk.gdk.Rectangle</code></a>
that contains the character at the location specified by
<em class="parameter"><code>iter</code></em>. The rectangle position is in buffer coordinates
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> 
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
coordinates</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>y position, in buffer
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
returns a <a class="link" href="class-gtktextiter.html" title="gtk.TextIter"><code class="classname">gtk.TextIter</code></a> that
points at the location specified by the buffer coordinates
<em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>. Buffer coordinates
are coordinates for the entire buffer, not just the currently-displayed
portion.  Window coordinates from an event, must be converted to buffer
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> 
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
height</td></tr></tbody></table><p>The <code class="methodname">get_line_yrange</code>() method locates
the line containing the <a class="link" href="class-gtktextiter.html" title="gtk.TextIter"><code class="classname">gtk.TextIter</code></a>
specified by <em class="parameter"><code>iter</code></em> and returns a tuple containing the
y coordinate of the top of the line and the height of the line. The
coordinate is a buffer coordinate 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> 
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>
pointing at the line start and the top coordinate of the
line</td></tr></tbody></table><p>The <code class="methodname">get_line_at_y</code>() method returns a
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>
pointing at the start of the line with the vertical coordinate specified by
<em class="parameter"><code>y</code></em> and,</li><li class="listitem">the vertical coordinate of the top edge of the
line.</li></ul></div><p><em class="parameter"><code>y</code></em> is in buffer coordinates that can be
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> 
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
<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
coordinates</td></tr></tbody></table><p>The <code class="methodname">buffer_to_window_coords</code>() method
returns a tuple containing the x and y coordinates for the window specified
by <em class="parameter"><code>win</code></em> that correspond to the textbuffer coordinates
specified by <em class="parameter"><code>buffer_x</code></em> and
<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
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
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> 
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
<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
coordinates</td></tr></tbody></table><p>The <code class="methodname">window_to_buffer_coords</code>() method
returns a tuple containing the textbuffer x and y coordinates corresponding
to the <em class="parameter"><code>window_x</code></em> and<em class="parameter"><code> window_y</code></em>
coordinates in the window specified by <em class="parameter"><code>win</code></em>, See the
above <a class="link" href="class-gtktextview.html#description-gtktextview" title="Description">description</a> for more
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
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>) 
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
<code class="literal">None</code></td></tr></tbody></table><p>The <code class="methodname">get_window</code>() method returns the
<a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a>
corresponding to an area of the textview specified by
<em class="parameter"><code>win</code></em>:</p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><code class="literal">gtk.TEXT_WINDOW_WIDGET</code></span></p></td><td>The widget window</td></tr><tr><td><p><span class="term"><code class="literal">gtk.TEXT_WINDOW_TEXT</code></span></p></td><td>The window that holds the text</td></tr><tr><td><p><span class="term"><code class="literal">gtk.TEXT_WINDOW_LEFT</code></span></p></td><td>The left border window - not displayed by
default</td></tr><tr><td><p><span class="term"><code class="literal">gtk.TEXT_WINDOW_RIGHT</code></span></p></td><td>The right border window - not displayed by
default</td></tr><tr><td><p><span class="term"><code class="literal">gtk.TEXT_WINDOW_TOP</code></span></p></td><td>The top border window - not displayed by
default</td></tr><tr><td><p><span class="term"><code class="literal">gtk.TEXT_WINDOW_BOTTOM</code></span></p></td><td>The bottom border window - not displayed by
default</td></tr><tr><td><p><span class="term"><code class="literal">gtk.TEXT_WINDOW_PRIVATE</code></span></p></td><td>An internal inaccessible <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr></tbody></table><p>This method returns <code class="literal">None</code> if the window is
nonexistent i.e. if its width or height is 0.</p></div><div class="refsect2" title="gtk.TextView.get_window_type"><a name="method-gtktextview--get-window-type"></a><h3>gtk.TextView.get_window_type</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_window_type</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</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>window</code></strong> :</span></p></td><td>a window type</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the window type.</td></tr></tbody></table><p>The <code class="methodname">get_window_type</code>() method returns
the type of the <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a>
specified by <em class="parameter"><code>window</code></em>. This method is used to find out
what window type an event corresponds to. If you connect to an event signal
on the textview, this method can be called on
<code class="literal">event.window</code> to see what window type it was. See the
<a class="link" href="class-gtktextview.html#method-gtktextview--get-window" title="gtk.TextView.get_window"><code class="methodname">get_window</code>()</a> 
method for more details on window types.</p></div><div class="refsect2" title="gtk.TextView.set_border_window_size"><a name="method-gtktextview--set-border-window-size"></a><h3>gtk.TextView.set_border_window_size</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_border_window_size</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></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>type</code></strong> :</span></p></td><td>a textview border window
type</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>size</code></strong> :</span></p></td><td>the width or height of the
window</td></tr></tbody></table><p>The <code class="methodname">set_border_window_size</code>() method
sets the width of a <code class="literal">gtk.TEXT_WINDOW_LEFT</code> or
<code class="literal">gtk.TEXT_WINDOW_RIGHT</code> window, or the height of a
<code class="literal">gtk.TEXT_WINDOW_TOP</code> or
<code class="literal">gtk.TEXT_WINDOW_BOTTOM</code> window. This method automatically
destroys the corresponding window if the size is set to 0, and creates the
window if the size is set to non-zero.  This method can only be used for the
"border windows", it doesn't work with the
<code class="literal">gtk.TEXT_WINDOW_WIDGET</code>,
<code class="literal">gtk.TEXT_WINDOW_TEXT</code>, or
<code class="literal">gtk.TEXT_WINDOW_PRIVATE</code> windows.</p></div><div class="refsect2" title="gtk.TextView.get_border_window_size"><a name="method-gtktextview--get-border-window-size"></a><h3>gtk.TextView.get_border_window_size</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_border_window_size</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>type</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>type</code></strong> :</span></p></td><td>a textview border window
type</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the width or height of the textview border
window</td></tr></tbody></table><p>The <code class="methodname">get_border_window_size</code>() method
returns the width or height of the border window of the type specified by
<em class="parameter"><code>type</code></em>. See 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> 
method for more details.</p></div><div class="refsect2" title="gtk.TextView.forward_display_line"><a name="method-gtktextview--forward-display-line"></a><h3>gtk.TextView.forward_display_line</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">forward_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
<em class="parameter"><code>iter</code></em> was moved and is not on the end
iterator</td></tr></tbody></table><p>The <code class="methodname">forward_display_line</code>() method moves
the location of <em class="parameter"><code>iter</code></em> forward by one display line. A
textview display line is different from a textbuffer line. Textbuffer lines
are paragraphs and are separated by newlines or other paragraph separator
characters. Display lines are created by line-wrapping a textbuffer line. If
wrapping is turned off, display lines and textbuffer lines will be the same.
Display lines are divided differently for each textview, since they depend
on the textview's width and the textview's default wrap mode. Paragraphs are
the same in all views, since they depend on the contents of the <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a>.
This method returns <code class="literal">True</code> if the location of
<em class="parameter"><code>iter</code></em> moves to a dereferenceable position (i.e. not
the end position).</p></div><div class="refsect2" title="gtk.TextView.backward_display_line"><a name="method-gtktextview--backward-display-line"></a><h3>gtk.TextView.backward_display_line</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">backward_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
<em class="parameter"><code>iter</code></em> was moved</td></tr></tbody></table><p>The <code class="methodname">backward_display_line</code>() method
moves the location of <em class="parameter"><code>iter</code></em> backward by one display
line. A textview display line is different from a textbuffer line. Textview
lines are paragraphs and are separated by newlines or other paragraph
separator characters. Display lines are created by line-wrapping a
textbuffer line. If wrapping is turned off, display lines and textbuffer
lines will be the same. Display lines are divided differently for each
textview, since they depend on the textview's width and the textview's
default wrap mode. Paragraphs are the same in all views, since they depend
on the contents of the <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a>.
This method returns <code class="literal">True</code> if the location of
<em class="parameter"><code>iter</code></em> moves to a dereferenceable position (i.e. not
the end position).</p></div><div class="refsect2" title="gtk.TextView.forward_display_line_end"><a name="method-gtktextview--forward-display-line-end"></a><h3>gtk.TextView.forward_display_line_end</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">forward_display_line_end</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
<em class="parameter"><code>iter</code></em> was moved and is not on the end
iterator</td></tr></tbody></table><p>The <code class="methodname">forward_display_line_end</code>() method
moves the location of <em class="parameter"><code>iter</code></em> forward to the next
display line end. A textview display line is different from a textbuffer
line. Textbuffer lines are paragraphs and are separated by newlines or other
paragraph separator characters. Display lines are created by line-wrapping a
textbuffer line. If wrapping is turned off, display lines and textbuffer
lines will be the same. Display lines are divided differently for each
textview, since they depend on the textview's width and the textview's
default wrap mode. Paragraphs are the same in all views, since they depend
on the contents of the <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a>.
This method returns <code class="literal">True</code> if the location of
<em class="parameter"><code>iter</code></em> moves to a dereferenceable position (i.e. not
the end position).</p></div><div class="refsect2" title="gtk.TextView.backward_display_line_start"><a name="method-gtktextview--backward-display-line-start"></a><h3>gtk.TextView.backward_display_line_start</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">backward_display_line_start</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
<em class="parameter"><code>iter</code></em> was moved</td></tr></tbody></table><p>The <code class="methodname">backward_display_line_start</code>()
method moves the location of <em class="parameter"><code>iter</code></em> backward to the
next display line start. A textview display line is different from a
textbuffer line. Textbuffer lines are paragraphs and are separated by newlines
or other paragraph separator characters. Display lines are created by
line-wrapping a textbuffer line. If wrapping is turned off, display lines
and textbuffer lines will be the same. Display lines are divided differently
for each textview, since they depend on the textview's width and the
textview's default wrap mode. Paragraphs are the same in all views, since
they depend on the contents of the <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a>.
This method returns <code class="literal">True</code> if the location of
<em class="parameter"><code>iter</code></em> moves to a dereferenceable position (i.e. not
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
<em class="parameter"><code>iter</code></em> is at the beginning of a display
line</td></tr></tbody></table><p>The <code class="methodname">starts_display_line</code>() method
returns <code class="literal">True</code> if the location of
<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> 
method for an explanation of display lines vs. textbuffer lines
(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
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
<em class="parameter"><code>iter</code></em> moved and is not on the end
iterator</td></tr></tbody></table><p>The<code class="methodname"> move_visually</code>() method moves the
location of <em class="parameter"><code>iter</code></em> by <em class="parameter"><code>count</code></em>
cursor positions. If count is negative the location moves against the
normal text direction. Note a cursor position move may move over multiple
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> 
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
the widget specified by <em class="parameter"><code>child</code></em> in the textview, at the
<a class="link" href="class-gtktextchildanchor.html" title="gtk.TextChildAnchor"><code class="classname">gtk.TextChildAnchor</code></a>
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
<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>
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>
in window coordinates</td></tr></tbody></table><p>The <code class="methodname">add_child_in_window</code>() method adds
the widget specified by <em class="parameter"><code>child</code></em> at the fixed
coordinates specified by <em class="parameter"><code>xpos</code></em> and
<em class="parameter"><code>ypos</code></em> in one of the text widget's windows specified by
<em class="parameter"><code>which_window</code></em>.  The window must have nonzero size (see
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> 
method).</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>The <em class="parameter"><code>child</code></em> coordinates are given
relative to the <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a>
specified by <em class="parameter"><code>which_window</code></em>, and these coordinates have
no sane relationship to scrolling. When placing <em class="parameter"><code>child</code></em>
in a <code class="literal">gtk.TEXT_WINDOW_WIDGET</code> window, scrolling is
irrelevant, <em class="parameter"><code>child</code></em> floats above all scrollable areas.
However, placing <em class="parameter"><code>child</code></em> in one of the scrollable
windows (a border windows or the text window), you'll need to compute the
correct position of <em class="parameter"><code>child</code></em> in textbuffer coordinates
any time scrolling occurs or textbuffer changes occur, and then call the
<a class="link" href="class-gtktextview.html#method-gtktextview--move-child" title="gtk.TextView.move_child"><code class="methodname">move_child</code>()</a> 
method to update the child's position. Unfortunately there's no good way to
detect that scrolling has occurred, using the current API; a possible hack
would be to update all child positions when the scroll adjustments change or
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
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
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
coordinates</td></tr></tbody></table><p>The <code class="methodname">move_child</code>() method moves the
position of <em class="parameter"><code>child</code></em> to the location (in its current
window) specified by <em class="parameter"><code>xpos</code></em> and
<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
"wrap-mode" property of the textview to the value specified by
<em class="parameter"><code>wrap_mode</code></em>. The value of wrap_mode can be one of:
<code class="literal">gtk.WRAP_NONE</code>, <code class="literal">gtk.WRAP_CHAR</code>, <code class="literal">gtk.WRAP_WORD</code>
or <code class="literal">gtk.WRAP_WORD_CHAR</code>. The "wrap-mode" property defines the wrap
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
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
value of the "wrap-mode" property. The value of "wrap-mode" can be one of:
<code class="literal">gtk.WRAP_NONE</code>, <code class="literal">gtk.WRAP_CHAR</code> or
<code class="literal">gtk.WRAP_WORD</code>. The "wrap-mode" property defines the wrap
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
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
by default</td></tr></tbody></table><p>The <code class="methodname">set_editable</code>() method sets the
"editable" property to the value of <em class="parameter"><code>setting</code></em>. If
<em class="parameter"><code>setting</code></em> is <code class="literal">True</code> the text in
textview is editable by default. The "editable" property determines the
editability of the <a class="link" href="class-gtktextview.html" title="gtk.TextView"><code class="classname">gtk.TextView</code></a> 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
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
by default</td></tr></tbody></table><p>The <code class="methodname">get_editable</code>() method returns the
value of the "editable" property. The "editable" property determines the
editability of the <a class="link" href="class-gtktextview.html" title="gtk.TextView"><code class="classname">gtk.TextView</code></a> 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
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
	  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
"overwrite" property to the value of <em class="parameter"><code>overwrite</code></em>. If
<em class="parameter"><code>overwrite</code></em> is <code class="literal">True</code>, inserted text
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
	  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
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>
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
	  <span class="keycap"><strong>Tab</strong></span> key should insert a tab character; if
	  <code class="literal">False</code>, pressing the <span class="keycap"><strong>Tab</strong></span> key
	  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
"accepts_tab" property to the value of
<em class="parameter"><code>accepts_tab</code></em>. If <em class="parameter"><code>accepts_tab</code></em> is
<code class="literal">True</code> a tab character is inserted. If
<em class="parameter"><code>accepts_tab</code></em> is <code class="literal">False</code> the keyboard
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
	  <span class="keycap"><strong>Tab</strong></span> key inserts a tab character,
	  <code class="literal">False</code> if pressing the <span class="keycap"><strong>Tab</strong></span> key
	  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
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>
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
paragraphs</td></tr></tbody></table><p>The <code class="methodname">set_pixels_above_lines</code>() method
sets the "pixels-above-lines" property to the value of
<em class="parameter"><code>pixels_above_lines</code></em>. The "pixels-above-lines" property
determines the number of blank pixels to place above textbuffer lines
(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
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
paragraphs</td></tr></tbody></table><p>The <code class="methodname">get_pixels_above_lines</code>() method
returns the value of the "pixels-above-lines" property. The
"pixels-above-lines" property determines the number of pixels to put above
textbuffer lines (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
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
paragraphs</td></tr></tbody></table><p>The <code class="methodname">set_pixels_below_lines</code>() method
sets the "pixels-below-lines" property to the value of
<em class="parameter"><code>pixels_below_lines</code></em>. The "pixels-below-lines" property
determines the number of blank pixels to place below textbuffer lines
(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
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
paragraphs</td></tr></tbody></table><p>The <code class="methodname">get_pixels_below_lines</code>() method
returns the value of the "pixels-below-lines" property. The
"pixels-below-lines" property determines the number of pixels to put below
textbuffer lines (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
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
lines</td></tr></tbody></table><p>The <code class="methodname">set_pixels_inside_wrap</code>() method
sets the "pixels-inside_wrap" property to the value of
<em class="parameter"><code>pixels_inside_wrap</code></em>. The "pixels-inside_wrap" property
determines the number of blank pixels to place between wrapped textbuffer
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
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
between wrapped lines</td></tr></tbody></table><p>The <code class="methodname">get_pixels_inside_wrap</code>() method
returns the value of the "pixels-inside-wrap" property. The
"pixels-inside-wrap" property determines the number of pixels to put between
wrapped textbuffer 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
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
"justification" property to the value of
<em class="parameter"><code>justification</code></em>. The value of justification must be one
of: <code class="literal">gtk.JUSTIFY_LEFT</code>,
<code class="literal">gtk.JUSTIFY_RIGHT</code>, <code class="literal">gtk.JUSTIFY_CENTER</code>
or <code class="literal">gtk.JUSTIFY_FILL</code>. The "justification" property
determines the justification of text in the textview that is not influenced
by a <a class="link" href="class-gtktexttag.html" title="gtk.TextTag"><code class="classname">gtk.TextTag</code></a> that
set its "justification" attribute.</p></div><div class="refsect2" title="gtk.TextView.get_justification"><a name="method-gtktextview--get-justification"></a><h3>gtk.TextView.get_justification</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_justification</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 justification</td></tr></tbody></table><p>The <code class="methodname">get_justification</code>() method returns
the value of the "justification" property. the default justification of
paragraphs in <em class="parameter"><code>text_view</code></em>. The value of "justification"
must be one of: <code class="literal">gtk.JUSTIFY_LEFT</code>,
<code class="literal">gtk.JUSTIFY_RIGHT</code>, <code class="literal">gtk.JUSTIFY_CENTER</code>
or <code class="literal">gtk.JUSTIFY_FILL</code>. The "justification" property
determines the justification of text in the textview that is not influenced
by a <a class="link" href="class-gtktexttag.html" title="gtk.TextTag"><code class="classname">gtk.TextTag</code></a> that
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
"left-margin" property to the value of <em class="parameter"><code>left_margin</code></em>.
The "left-margin"property determines the number of pixels of space for the
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
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
pixels</td></tr></tbody></table><p>The <code class="methodname">get_left_margin</code>() method returns
the value of the "left_margin" property. The "left-margin"property
determines the number of pixels of space for the 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
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
pixels</td></tr></tbody></table><p>The <code class="methodname">set_right_margin</code>() method sets the
"right-margin" property to the value of <em class="parameter"><code>right_margin</code></em>.
The "right-margin"property determines the number of pixels of space for the
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
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
pixels</td></tr></tbody></table><p>The <code class="methodname">get_right_margin</code>() method returns
the value of the "right_margin" property. The "right-margin"property
determines the number of pixels of space for the 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
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
pixels</td></tr></tbody></table><p>The <code class="methodname">set_indent</code>() method sets the
"indent" property to the value of <em class="parameter"><code>indent</code></em>. The
"indent" property determines the 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
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
indentation</td></tr></tbody></table><p>The <code class="methodname">get_indent</code>() method returns the
value of the "indent" property. The "indent" property determines the
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
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"
property to a copy of the value of <em class="parameter"><code>tabs</code></em>. The "tabs"
property contains the custom tab stops 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
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
<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
of the "tabs" property.  The "tabs" property contains the custom tab stops
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
sets its "tabs" attribute. The returned value will be
<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
returns a copy of the default <a class="link" href="class-gtktextattributes.html" title="gtk.TextAttributes"><code class="classname">gtk.TextAttributes</code></a>. 
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>.
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> 
method to get the attributes in effect at a given text position.</p></div><div class="refsect2" title="gtk.TextView.get_hadjustment"><a name="method-gtktextview--get-hadjustment"></a><h3>gtk.TextView.get_hadjustment</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_hadjustment</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 horizontal adjustment.</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.22 and above.</p></div><p>The <code class="methodname">get_hadjustment</code>() method gets the horizontal-scrolling adjustment.</p></div><div class="refsect2" title="gtk.TextView.get_vadjustment"><a name="method-gtktextview--get-vadjustment"></a><h3>gtk.TextView.get_vadjustment</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_vadjustment</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 vertical adjustment.</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.22 and above.</p></div><p>The <code class="methodname">get_vadjustment</code>() method gets the vertical-scrolling adjustment.</p></div></div><div class="refsect1" title="Signals"><a name="id3980607"></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
          with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
          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
      <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
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
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
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><p>The "copy-clipboard" signal is emitted when a selection is
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
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
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
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><p>The "cut-clipboard" signal is emitted when a selection is cut
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
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
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
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
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><p>The "delete-from-cursor" signal is emitted when a deletion of
the type specified by <em class="parameter"><code>delete_type</code></em> is initiated by
user action (e.g. pressing the <span class="keycap"><strong>Delete</strong></span> or
<span class="keycap"><strong>Backspace</strong></span> keys). The value of
<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
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
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
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
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><p>The "insert-at-cursor" signal is emitted when
<em class="parameter"><code>string</code></em> is being inserted in
<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
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
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
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
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
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><p>The "move-cursor" signal is emitted when the cursor is moved by
<em class="parameter"><code>count</code></em> steps of <em class="parameter"><code>step_size</code></em>. If
<em class="parameter"><code>extend_selection</code></em> is <code class="literal">True</code> the
selection is extended by the cursor movement. The value of step_size must be
one of:</p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><code class="literal">gtk.MOVEMENT_LOGICAL_POSITIONS</code></span></p></td><td>move by graphemes</td></tr><tr><td><p><span class="term"><code class="literal">gtk.MOVEMENT_VISUAL_POSITIONS</code></span></p></td><td>move by graphemes</td></tr><tr><td><p><span class="term"><code class="literal">gtk.MOVEMENT_WORDS</code></span></p></td><td>move by words</td></tr><tr><td><p><span class="term"><code class="literal">gtk.MOVEMENT_DISPLAY_LINES</code></span></p></td><td>move by lines(wrapped lines)</td></tr><tr><td><p><span class="term"><code class="literal">gtk.MOVEMENT_DISPLAY_LINE_ENDS</code></span></p></td><td>move to line ends(wrapped lines)</td></tr><tr><td><p><span class="term"><code class="literal">gtk.MOVEMENT_PARAGRAPHS</code></span></p></td><td>move by paragraphs(newline-ended lines)</td></tr><tr><td><p><span class="term"><code class="literal">gtk.MOVEMENT_PARAGRAPH_ENDS</code></span></p></td><td>move to ends of a paragraph</td></tr><tr><td><p><span class="term"><code class="literal">gtk.MOVEMENT_PAGES</code></span></p></td><td>move by pages</td></tr><tr><td><p><span class="term"><code class="literal">gtk.MOVEMENT_BUFFER_ENDS</code></span></p></td><td>move to ends of the buffer</td></tr></tbody></table><p></p></div><div class="refsect2" title='The "move-focus" gtk.TextView Signal'><a name="signal-gtktextview--move-focus"></a><h3>The "move-focus" 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>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></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
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>direction</code></em> :</span></p></td><td>the direction to move the
focus</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
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
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><p>The "move-focus" signal is emitted when the focus moves from
<em class="parameter"><code>textview</code></em> in the direction specified by
<em class="parameter"><code>direction</code></em> that must be one of:
<code class="literal">gtk.DIR_TAB_FORWARD</code>,
<code class="literal">gtk.DIR_TAB_BACKWARD</code>, <code class="literal">gtk.DIR_UP</code>,
<code class="literal">gtk.DIR_DOWN</code>, <code class="literal">gtk.DIR_LEFT</code> or
<code class="literal">gtk.DIR_RIGHT</code></p></div><div class="refsect2" title='The "move-viewport" gtk.TextView Signal'><a name="signal-gtktextview--move-viewport"></a><h3>The "move-viewport" 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>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></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
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>scrollstep</code></em> :</span></p></td><td>the size of the scroll step:
	  <code class="literal">gtk.SCROLL_STEPS</code>,
	  <code class="literal">gtk.SCROLL_PAGES</code>,
	  <code class="literal">gtk.SCROLL_ENDS</code>,
	  <code class="literal">gtk.SCROLL_HORIZONTAL_STEPS</code>,
	  <code class="literal">gtk.SCROLL_HORIZONTAL_PAGES</code> or
	  <code class="literal">gtk.SCROLL_HORIZONTAL_ENDS</code></td></tr><tr><td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td><td>the number of scroll steps of size
	  <em class="parameter"><code>scrollstep</code></em> to take</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
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
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.4 and above.</p></div><p>The "move-viewport" signal is emitted when the viewport is being
moved usually as the result of user action in moving the cursor or using
the scrollbars.</p></div><div class="refsect2" title='The "page-horizontally" gtk.TextView Signal'><a name="signal-gtktextview--page-horizontally"></a><h3>The "page-horizontally" 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>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
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td><td>the number of pages to
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
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
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
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><p>The "page-horizontally" signal is emitted when user initiates
horizontal paging by pressing one of the key combinations:</p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="keycap"><strong>Control</strong></span>+<span class="keycap"><strong>Page Up</strong></span></span></p></td><td>Page horizontally with
<em class="parameter"><code>extend_selection</code></em> set to
<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
<em class="parameter"><code>extend_selection</code></em> set to
<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
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
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
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><p>The "paste-clipboard" signal is emitted when the contents of the
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
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
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
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><p>The "populate-popup" signal is emitted when the popup menu
(specified by <em class="parameter"><code>menu</code></em>) associated with
<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
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
	  contents; otherwise deselect the buffer
	  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
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
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.2 and above.</p></div><p>The "select-all" signal is emitted when the user presses one
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
<span class="keycap"><strong>Control</strong></span>+<span class="keycap"><strong>/</strong></span> to
select all text in a buffer</li><li class="listitem"><span class="keycap"><strong>Control</strong></span>+<span class="keycap"><strong>\</strong></span> to
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
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
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
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><p>The "set-anchor" signal is emitted when an application calls the
<PYGTKDOCLINK HREF="method-gobject--emit"><code class="methodname">GObject.emit()</code>()</PYGTKDOCLINK> 
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
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
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
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><p>The "set-scroll-adjustments" signal is emitted when one or both
adjustments (specified by <em class="parameter"><code>hadjustment</code></em> and
<em class="parameter"><code>vadjustment</code></em>) are set on
<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
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
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
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><p>The "toggle-overwrite" signal is emitted when the user presses
the <span class="keycap"><strong>Insert</strong></span> key.</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-gtktexttagtable.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="gtk-class-reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="class-gtktoggleaction.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.TextTagTable </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtk.ToggleAction</td></tr></table></div></body></html>