run without argumentsthe script stuffs simple literal string into the widgetdisplayed by the first escape press output here (recall that \ is the escape sequence for the lineend characterthe second output here happens after editing the window' textwhen pressing escape in the shrunken window captured in figure - by defaulttext widget text is fully editable using the usual edit operations for your platform figure - scrolledtext gets positive outlook string positions the second key to understanding text code has to do with the ways you specify position in the text string like the listboxtext widgets allow you to specify such position in variety of ways in textmethods that expect position to be passed in will accept an indexa markor tag reference moreoversome special operations are invoked with predefined marks and tags--the insert cursor is mark insertand the current selection is tag sel since they are fundamental to text and the source of much of its expressive powerlet' take closer look at these settings text indexes because it is multiple-line widgettext indexes identify both line and column for instanceconsider the interfaces of the basic insertdeleteand fetch text operations used by this scriptself text insert(' 'textself text delete(' 'endreturn self text get(' 'end+'- 'insert text at the start delete all current text fetch first through last in all of thesethe first argument is an absolute index that refers to the start of the text stringstring ' means row column (rows are numbered from and columns from though ' is accepted as reference to the start of the texttooan index ' refers to the second character in the second row like the listboxtext indexes can also be symbolic namesthe end in the preceding delete call refers to the position just past the last character in the text string (it' tkinter variable preset to string 'end'similarlythe symbolic index insert (reallystring 'insert'refers to the position immediately after the insert cursor--the place where characters would appear if typed at the keyboard symbolic names such as insert can also be called marksdescribed in moment text