-
Notifications
You must be signed in to change notification settings - Fork 54
AreaVi Index's
Iury O. G. Figueiredo edited this page Aug 26, 2016
·
1 revision
An index is a string of the type shown below:
'Line.Col'
Such a string corresponds to a position of the AreaVi instance. The example below should elucidate better than any definition. Such an example should be run through an interactive session:
from vyapp.areavi import *
area = AreaVi('None')
area.pack(expand=True, fill=BOTH)
# Insert the text at the position 1.0, it means
# at the line 1 and col 0.
area.insert('1.0', 'THIS IS A STRING')
# Now try this one. It will insert the char '#' at line 1 and col 4.
area.insert('1.4', '#')
# This one deletes a range of text.
area.delete('1.4', '1.5')