Class: Text (Tk)

Overview
Module Structure
Class Hierarchy
Constants
Text::ItemConfCMD
Text::TkCommandNames
Text::WidgetClassName
Class Methods
Text.new / 2
Text.at (1/2) / 2
Instance Aliases
Text#erase
Text#set_mark
Text#unset_mark
Text#next_mark
Text#previous_mark
Text#addtag
Text#add_tag
Text#deltag
Text#delete_tag
Instance Methods
Text#init_instance_variable
Text#__destroy_hook__
Text#create_self / 1
Text#__strval_optkeys
Text#at (2/E) / 2
Text#index / 1
Text#get_displaychars / 1
Text#value
Text#value= / 1
Text#clear
Text#_addcmd / 1
Text#_addtag / 2
Text#tagid / 1
Text#tagid2obj / 1
Text#tag_names / 1
Text#mark_names
Text#mark_gravity / 2
Text#mark_set / 2
Text#mark_unset / 1
Text#mark_next / 1
Text#mark_previous / 1
Text#image_cget_strict / 2
Text#image_cget / 2
Text#image_configure / 3
Text#image_configinfo / 2
Text#current_image_configinfo / 2
Text#image_names
Text#set_insert / 1
Text#set_current / 1
Text#insert / 3
Text#destroy
Text#backspace
Text#bbox / 1
Text#compare / 3
Text#count / 3
Text#count_info / 3
Text#peer_names
Text#replace / 3
Text#debug
Text#debug= / 1
Text#dlineinfo / 1
Text#modified?
Text#modified / 1
Text#modified= / 1
Text#edit_redo
Text#edit_reset
Text#edit_separator
Text#edit_undo
Text#xview_pickplace / 1
Text#yview_pickplace / 1
Text#text_copy
Text#text_cut
Text#text_paste
Text#tag_add / 3
Text#tag_delete / 1
Text#tag_bind / 3
Text#tag_bind_append / 3
Text#tag_bind_remove / 2
Text#tag_bindinfo / 2
Text#tag_raise / 2
Text#tag_lower / 2
Text#tag_remove / 2
Text#tag_ranges / 1
Text#tag_nextrange / 3
Text#tag_prevrange / 3
Text#window_names
Text#_ktext_length / 1
Text#tksearch / 1
Text#tksearch_with_count / 1
Text#search_with_length / 3
Text#search / 3
Text#rsearch_with_length / 3
Text#rsearch / 3
Text#dump / 3
Text#_retrieve_braced_text / 2
Text#_retrieve_backslashed_text / 2
Text#dump_all / 2
Text#dump_mark / 2
Text#dump_tag / 2
Text#dump_text / 2
Text#dump_window / 2
Text#dump_image / 2
is a submodule of
module: Tk   
is modularized into
module: IndexModMethods   
class: IndexString   
class: Peer   
includes
  Scrollable ( Tk )
  TkTextTagConfig   
inherits from
  TkTextWin   
is inherited by
  Peer ( Tk::Text )
has class siblings
  Listbox ( Tk )
has properties
constant: ItemConfCMD   
constant: TkCommandNames   
constant: WidgetClassName   
class method: new / 2   
method: init_instance_variable   
method: __destroy_hook__   
method: create_self / 1   
method: __strval_optkeys   
class method: at (1/2) / 2   
method: at (2/E) / 2   
method: index / 1   
method: get_displaychars / 1   
method: value   
method: value= / 1   
method: clear   
alias: erase clear   
method: _addcmd / 1   
method: _addtag / 2   
method: tagid / 1   
method: tagid2obj / 1   
method: tag_names / 1   
method: mark_names   
method: mark_gravity / 2   
method: mark_set / 2   
alias: set_mark mark_set   
method: mark_unset / 1   
alias: unset_mark mark_unset   
method: mark_next / 1   
alias: next_mark mark_next   
method: mark_previous / 1   
alias: previous_mark mark_previous   
method: image_cget_strict / 2   
method: image_cget / 2   
method: image_configure / 3   
method: image_configinfo / 2   
method: current_image_configinfo / 2   
method: image_names   
method: set_insert / 1   
method: set_current / 1   
method: insert / 3   
method: destroy   
method: backspace   
method: bbox / 1   
method: compare / 3   
method: count / 3   
method: count_info / 3   
method: peer_names   
method: replace / 3   
method: debug   
method: debug= / 1   
method: dlineinfo / 1   
method: modified?   
method: modified / 1   
method: modified= / 1   
method: edit_redo   
method: edit_reset   
method: edit_separator   
method: edit_undo   
method: xview_pickplace / 1   
method: yview_pickplace / 1   
method: text_copy   
method: text_cut   
method: text_paste   
method: tag_add / 3   
alias: addtag tag_add   
alias: add_tag tag_add   
method: tag_delete / 1   
alias: deltag tag_delete   
alias: delete_tag tag_delete   
method: tag_bind / 3   
method: tag_bind_append / 3   
method: tag_bind_remove / 2   
method: tag_bindinfo / 2   
method: tag_raise / 2   
method: tag_lower / 2   
method: tag_remove / 2   
method: tag_ranges / 1   
method: tag_nextrange / 3   
method: tag_prevrange / 3   
method: window_names   
method: _ktext_length / 1   
method: tksearch / 1   
method: tksearch_with_count / 1   
method: search_with_length / 3   
method: search / 3   
method: rsearch_with_length / 3   
method: rsearch / 3   
method: dump / 3   
method: _retrieve_braced_text / 2   
method: _retrieve_backslashed_text / 2   
method: dump_all / 2   
method: dump_mark / 2   
method: dump_tag / 2   
method: dump_text / 2   
method: dump_window / 2   
method: dump_image / 2   
is defined at
#68 in tk/text.rb  

Overview

Module Structure

  module: <Toplevel Module>
  module: Tk
  class: Listbox
  module: Scrollable
✗ class: Text
module: IndexModMethods     
class: IndexString     
class: Peer     
  module: TkTextTagConfig
  class: TkTextWin

Class Hierarchy

Object ( Builtin-Module )
String ( Builtin-Module )
  IndexString ( Tk::Text )   
TkKernel
TkObject
extends
  TkCore   
includes
  Tk   
  TkBindCore   
  TkConfigMethod   
has properties
method: epath   
method: to_eval   
method: tk_send / 2   
method: tk_send_without_enc / 2   
method: tk_send_with_enc / 2   
method: tk_send_to_list / 2   
method: tk_send_to_list_without_enc / 2   
method: tk_send_to_list_with_enc / 2   
method: tk_send_to_simplelist / 2   
method: tk_send_to_simplelist_without_enc / 2   
method: tk_send_to_simplelist_with_enc / 2   
method: method_missing / 2   
method: event_generate / 2   
method: tk_trace_variable / 1   
method: destroy   
TkWindow
extends
  TkBindCore   
includes
  TkWinfo   
  Wm_for_General ( Tk )
has properties
class method: _widget_inspect_full_?   
class method: _widget_inspect_full_= / 1   
constant: TkCommandNames   
constant: WidgetClassName   
class method: to_eval   
method: initialize / 2   
method: create_self / 1   
method: inspect   
method: exist?   
method: bind_class   
method: database_classname (1/2)   
method: database_class (1/2)   
class method: database_classname (2/E)   
class method: database_class (2/E)   
method: pack / 1   
method: pack_in / 2   
method: pack_forget   
alias: unpack pack_forget   
method: pack_config / 2   
alias: pack_configure pack_config   
method: pack_info   
method: pack_propagate / 1   
method: pack_slaves   
method: grid / 1   
method: grid_in / 2   
method: grid_anchor / 1   
method: grid_forget   
alias: ungrid grid_forget   
method: grid_bbox / 1   
method: grid_config / 2   
alias: grid_configure grid_config   
method: grid_columnconfig / 2   
alias: grid_columnconfigure grid_columnconfig   
alias: grid_column grid_columnconfig   
method: grid_rowconfig / 2   
alias: grid_rowconfigure grid_rowconfig   
alias: grid_row grid_rowconfig   
method: grid_columnconfiginfo / 2   
method: grid_rowconfiginfo / 2   
method: grid_info   
method: grid_location / 2   
method: grid_propagate / 1   
method: grid_remove   
method: grid_size   
method: grid_slaves / 1   
method: place / 1   
method: place_in / 2   
method: place_forget   
alias: unplace place_forget   
method: place_config / 2   
alias: place_configure place_config   
method: place_configinfo / 1   
method: place_info   
method: place_slaves   
method: set_focus / 1   
alias: focus set_focus   
method: grab / 1   
method: grab_current   
alias: current_grab grab_current   
method: grab_release   
alias: release_grab grab_release   
method: grab_set   
alias: set_grab grab_set   
method: grab_set_global   
alias: set_global_grab grab_set_global   
method: grab_status   
method: lower / 1   
alias: lower_window lower   
method: raise / 1   
alias: raise_window raise   
method: command / 2   
method: colormodel / 1   
method: caret / 1   
method: destroy   
method: wait_visibility / 1   
method: eventloop_wait_visibility   
method: thread_wait_visibility   
alias: wait wait_visibility   
alias: tkwait wait_visibility   
alias: eventloop_wait eventloop_wait_visibility   
alias: eventloop_tkwait eventloop_wait_visibility   
alias: eventloop_tkwait_visibility eventloop_wait_visibility   
alias: thread_wait thread_wait_visibility   
alias: thread_tkwait thread_wait_visibility   
alias: thread_tkwait_visibility thread_wait_visibility   
method: wait_destroy / 1   
alias: wait_window wait_destroy   
method: eventloop_wait_destroy   
alias: eventloop_wait_window eventloop_wait_destroy   
method: thread_wait_destroy   
alias: thread_wait_window thread_wait_destroy   
alias: tkwait_destroy wait_destroy   
alias: tkwait_window wait_destroy   
alias: eventloop_tkwait_destroy eventloop_wait_destroy   
alias: eventloop_tkwait_window eventloop_wait_destroy   
alias: thread_tkwait_destroy thread_wait_destroy   
alias: thread_tkwait_window thread_wait_destroy   
method: bindtags / 1   
method: bindtags= / 1   
method: bindtags_shift   
method: bindtags_unshift / 1   
TkTextWin
has properties
constant: TkCommandNames   
method: bbox / 1   
method: delete / 2   
method: get / 1   
method: insert / 2   
method: scan_mark / 2   
method: scan_dragto / 2   
method: see / 1   
Listbox ( Tk )
Text ( Tk )
includes
  Scrollable ( Tk )
  TkTextTagConfig   
has properties
constant: ItemConfCMD   
constant: TkCommandNames   
constant: WidgetClassName   
class method: new / 2   
method: init_instance_variable   
method: __destroy_hook__   
method: create_self / 1   
method: __strval_optkeys   
class method: at (1/2) / 2   
method: at (2/E) / 2   
method: index / 1   
method: get_displaychars / 1   
method: value   
method: value= / 1   
method: clear   
alias: erase clear   
method: _addcmd / 1   
method: _addtag / 2   
method: tagid / 1   
method: tagid2obj / 1   
method: tag_names / 1   
method: mark_names   
method: mark_gravity / 2   
method: mark_set / 2   
alias: set_mark mark_set   
method: mark_unset / 1   
alias: unset_mark mark_unset   
method: mark_next / 1   
alias: next_mark mark_next   
method: mark_previous / 1   
alias: previous_mark mark_previous   
method: image_cget_strict / 2   
method: image_cget / 2   
method: image_configure / 3   
method: image_configinfo / 2   
method: current_image_configinfo / 2   
method: image_names   
method: set_insert / 1   
method: set_current / 1   
method: insert / 3   
method: destroy   
method: backspace   
method: bbox / 1   
method: compare / 3   
method: count / 3   
method: count_info / 3   
method: peer_names   
method: replace / 3   
method: debug   
method: debug= / 1   
method: dlineinfo / 1   
method: modified?   
method: modified / 1   
method: modified= / 1   
method: edit_redo   
method: edit_reset   
method: edit_separator   
method: edit_undo   
method: xview_pickplace / 1   
method: yview_pickplace / 1   
method: text_copy   
method: text_cut   
method: text_paste   
method: tag_add / 3   
alias: addtag tag_add   
alias: add_tag tag_add   
method: tag_delete / 1   
alias: deltag tag_delete   
alias: delete_tag tag_delete   
method: tag_bind / 3   
method: tag_bind_append / 3   
method: tag_bind_remove / 2   
method: tag_bindinfo / 2   
method: tag_raise / 2   
method: tag_lower / 2   
method: tag_remove / 2   
method: tag_ranges / 1   
method: tag_nextrange / 3   
method: tag_prevrange / 3   
method: window_names   
method: _ktext_length / 1   
method: tksearch / 1   
method: tksearch_with_count / 1   
method: search_with_length / 3   
method: search / 3   
method: rsearch_with_length / 3   
method: rsearch / 3   
method: dump / 3   
method: _retrieve_braced_text / 2   
method: _retrieve_backslashed_text / 2   
method: dump_all / 2   
method: dump_mark / 2   
method: dump_tag / 2   
method: dump_text / 2   
method: dump_window / 2   
method: dump_image / 2   
  Peer ( Tk::Text )   

Constants

Text::ItemConfCMD

#69 in tk/text.rb

ItemConfCMD = ['tag'.freeze, 'configure'.freeze].freeze   

Text::TkCommandNames

#252 in tk/text.rb

TkCommandNames = ['text'.freeze].freeze   

Text::WidgetClassName

#253 in tk/text.rb

WidgetClassName = 'Text'.freeze   

Class Methods

Text.new / 2

#256 in tk/text.rb

new ( *args ,
  &block )

Text.at (1/2) / 2

#300 in tk/text.rb

at ( x ,
  y )

Instance Aliases

Text#erase

#332 in tk/text.rb

erase clear   

Text#set_mark

#391 in tk/text.rb

set_mark mark_set   

Text#unset_mark

#398 in tk/text.rb

unset_mark mark_unset   

Text#next_mark

#404 in tk/text.rb

next_mark mark_next   

Text#previous_mark

#410 in tk/text.rb

previous_mark mark_previous   

Text#addtag

#745 in tk/text.rb

addtag tag_add   

Text#add_tag

#746 in tk/text.rb

add_tag tag_add   

Text#deltag

#764 in tk/text.rb

deltag tag_delete   

Text#delete_tag

#765 in tk/text.rb

delete_tag tag_delete   

Instance Methods

Text#init_instance_variable
Text#__destroy_hook__
Text#create_self / 1
Text#__strval_optkeys
Text#at (2/E) / 2
Text#index / 1
Text#get_displaychars / 1
Text#value
Text#value= / 1
Text#clear
Text#_addcmd / 1
Text#_addtag / 2
Text#tagid / 1
Text#tagid2obj / 1
Text#tag_names / 1
Text#mark_names
Text#mark_gravity / 2
Text#mark_set / 2
Text#mark_unset / 1
Text#mark_next / 1
Text#mark_previous / 1
Text#image_cget_strict / 2
Text#image_cget / 2
Text#image_configure / 3
Text#image_configinfo / 2
Text#current_image_configinfo / 2
Text#image_names
Text#set_insert / 1
Text#set_current / 1
Text#insert / 3
Text#destroy
Text#backspace
Text#bbox / 1
Text#compare / 3
Text#count / 3
Text#count_info / 3
Text#peer_names
Text#replace / 3
Text#debug
Text#debug= / 1
Text#dlineinfo / 1
Text#modified?
Text#modified / 1
Text#modified= / 1
Text#edit_redo
Text#edit_reset
Text#edit_separator
Text#edit_undo
Text#xview_pickplace / 1
Text#yview_pickplace / 1
Text#text_copy
Text#text_cut
Text#text_paste
Text#tag_add / 3
Text#tag_delete / 1
Text#tag_bind / 3
Text#tag_bind_append / 3
Text#tag_bind_remove / 2
Text#tag_bindinfo / 2
Text#tag_raise / 2
Text#tag_lower / 2
Text#tag_remove / 2
Text#tag_ranges / 1
Text#tag_nextrange / 3
Text#tag_prevrange / 3
Text#window_names
Text#_ktext_length / 1
Text#tksearch / 1
Text#tksearch_with_count / 1
Text#search_with_length / 3
Text#search / 3
Text#rsearch_with_length / 3
Text#rsearch / 3
Text#dump / 3
Text#_retrieve_braced_text / 2
Text#_retrieve_backslashed_text / 2
Text#dump_all / 2
Text#dump_mark / 2
Text#dump_tag / 2
Text#dump_text / 2
Text#dump_window / 2
Text#dump_image / 2

Text#init_instance_variable

#267 in tk/text.rb

init_instance_variable

Text#__destroy_hook__

#272 in tk/text.rb

__destroy_hook__

Text#create_self / 1

#281 in tk/text.rb

create_self ( keys )

Text#__strval_optkeys

#295 in tk/text.rb

__strval_optkeys

Text#at (2/E) / 2

#304 in tk/text.rb

at ( x ,
  y )

Text#index / 1

#308 in tk/text.rb

index ( idx )

Text#get_displaychars / 1

#313 in tk/text.rb

get_displaychars ( *index )

Text#value

#318 in tk/text.rb

value

Text#value= / 1

#322 in tk/text.rb

value= ( val )

Text#clear

#328 in tk/text.rb

clear

Text#_addcmd / 1

#334 in tk/text.rb

_addcmd ( cmd )

Text#_addtag / 2

#338 in tk/text.rb

_addtag ( name ,
  obj )

Text#tagid / 1

#342 in tk/text.rb

tagid ( tag )

Text#tagid2obj / 1

#354 in tk/text.rb

tagid2obj ( tagid )

Text#tag_names / 1

#362 in tk/text.rb

tag_names ( index=None )

Text#mark_names

#369 in tk/text.rb

mark_names

Text#mark_gravity / 2

#376 in tk/text.rb

mark_gravity ( mark ,
  direction=nil )

Text#mark_set / 2

#386 in tk/text.rb

mark_set ( mark ,
  index )

Text#mark_unset / 1

#393 in tk/text.rb

mark_unset ( *marks )

Text#mark_next / 1

#400 in tk/text.rb

mark_next ( index )

Text#mark_previous / 1

#406 in tk/text.rb

mark_previous ( index )

Text#image_cget_strict / 2

#412 in tk/text.rb

image_cget_strict ( index ,
  slot )

Text#image_cget / 2

#424 in tk/text.rb

image_cget ( index ,
  slot )

Text#image_configure / 3

#446 in tk/text.rb

image_configure ( index ,
  slot ,
  value=None )

Text#image_configinfo / 2

#460 in tk/text.rb

image_configinfo ( index ,
  slot = nil )

Text#current_image_configinfo / 2

#549 in tk/text.rb

current_image_configinfo ( index ,
  slot = nil )

Text#image_names

#570 in tk/text.rb

image_names

Text#set_insert / 1

#577 in tk/text.rb

set_insert ( index )

Text#set_current / 1

#582 in tk/text.rb

set_current ( index )

Text#insert / 3

#587 in tk/text.rb

insert ( index ,
  chars ,
  *tags )

Text#destroy

#606 in tk/text.rb

destroy

Text#backspace

#614 in tk/text.rb

backspace

Text#bbox / 1

#618 in tk/text.rb

bbox ( index )

Text#compare / 3

#622 in tk/text.rb

compare ( idx1 ,
  op ,
  idx2 )

Text#count / 3

#627 in tk/text.rb

count ( idx1 ,
  idx2 ,
  *opts )

Text#count_info / 3

#643 in tk/text.rb

count_info ( idx1 ,
  idx2 ,
  update=true )

Text#peer_names

#659 in tk/text.rb

peer_names

Text#replace / 3

#664 in tk/text.rb

replace ( idx1 ,
  idx2 ,
  *opts )

Text#debug

#669 in tk/text.rb

debug

Text#debug= / 1

#672 in tk/text.rb

debug= ( boolean )

Text#dlineinfo / 1

#678 in tk/text.rb

dlineinfo ( index )

Text#modified?

#682 in tk/text.rb

modified?

Text#modified / 1

#685 in tk/text.rb

modified ( mode )

Text#modified= / 1

#689 in tk/text.rb

modified= ( mode )

Text#edit_redo

#694 in tk/text.rb

edit_redo

Text#edit_reset

#698 in tk/text.rb

edit_reset

Text#edit_separator

#702 in tk/text.rb

edit_separator

Text#edit_undo

#706 in tk/text.rb

edit_undo

Text#xview_pickplace / 1

#711 in tk/text.rb

xview_pickplace ( index )

Text#yview_pickplace / 1

#716 in tk/text.rb

yview_pickplace ( index )

Text#text_copy

#721 in tk/text.rb

text_copy

Text#text_cut

#727 in tk/text.rb

text_cut

Text#text_paste

#733 in tk/text.rb

text_paste

Text#tag_add / 3

#739 in tk/text.rb

tag_add ( tag ,
  index1 ,
  index2=None )

Text#tag_delete / 1

#748 in tk/text.rb

tag_delete ( *tags )

Text#tag_bind / 3

#771 in tk/text.rb

tag_bind ( tag ,
  seq ,
  *args )

Text#tag_bind_append / 3

#786 in tk/text.rb

tag_bind_append ( tag ,
  seq ,
  *args )

Text#tag_bind_remove / 2

#797 in tk/text.rb

tag_bind_remove ( tag ,
  seq )

Text#tag_bindinfo / 2

#802 in tk/text.rb

tag_bindinfo ( tag ,
  context=nil )

Text#tag_raise / 2

#982 in tk/text.rb

tag_raise ( tag ,
  above=None )

Text#tag_lower / 2

#988 in tk/text.rb

tag_lower ( tag ,
  below=None )

Text#tag_remove / 2

#994 in tk/text.rb

tag_remove ( tag ,
  *indices )

Text#tag_ranges / 1

#1000 in tk/text.rb

tag_ranges ( tag )

Text#tag_nextrange / 3

#1013 in tk/text.rb

tag_nextrange ( tag ,
  first ,
  last=None )

Text#tag_prevrange / 3

#1022 in tk/text.rb

tag_prevrange ( tag ,
  first ,
  last=None )

Text#window_names

#1215 in tk/text.rb

window_names

Text#_ktext_length / 1

#1222 in tk/text.rb

_ktext_length ( txt )

Text#tksearch / 1

#1248 in tk/text.rb

tksearch ( *args )

Text#tksearch_with_count / 1

#1281 in tk/text.rb

tksearch_with_count ( *args )

Text#search_with_length / 3

#1316 in tk/text.rb

search_with_length ( pat ,
  start ,
  stop=None )

Text#search / 3

#1373 in tk/text.rb

search ( pat ,
  start ,
  stop=None )

Text#rsearch_with_length / 3

#1377 in tk/text.rb

rsearch_with_length ( pat ,
  start ,
  stop=None )

Text#rsearch / 3

#1429 in tk/text.rb

rsearch ( pat ,
  start ,
  stop=None )

Text#dump / 3

#1433 in tk/text.rb

dump ( type_info ,
  *index ,
  &block )

Text#_retrieve_braced_text / 2

#1516 in tk/text.rb

_retrieve_braced_text ( str ,
  i )

Text#_retrieve_backslashed_text / 2

#1535 in tk/text.rb

_retrieve_backslashed_text ( str ,
  i )

Text#dump_all / 2

#1552 in tk/text.rb

dump_all ( *index ,
  &block )

Text#dump_mark / 2

#1555 in tk/text.rb

dump_mark ( *index ,
  &block )

Text#dump_tag / 2

#1558 in tk/text.rb

dump_tag ( *index ,
  &block )

Text#dump_text / 2

#1561 in tk/text.rb

dump_text ( *index ,
  &block )

Text#dump_window / 2

#1564 in tk/text.rb

dump_window ( *index ,
  &block )

Text#dump_image / 2

#1567 in tk/text.rb

dump_image ( *index ,
  &block )