summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-07-08 09:17:26 (GMT)
committerGuido van Rossum <guido@python.org>1994-07-08 09:17:26 (GMT)
commit9755b26fa9129a55656c07788d943318d3fee400 (patch)
treed9d7c41d79e491e01cf541bc3a657f1bd18d0d66 /Demo
parentfdfa2b513606ade680021b50462d1eec7c63f1ff (diff)
downloadcpython-9755b26fa9129a55656c07788d943318d3fee400.zip
cpython-9755b26fa9129a55656c07788d943318d3fee400.tar.gz
cpython-9755b26fa9129a55656c07788d943318d3fee400.tar.bz2
Always insert at 'end'
Diffstat (limited to 'Demo')
-rwxr-xr-xDemo/tkinter/guido/ManPage.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Demo/tkinter/guido/ManPage.py b/Demo/tkinter/guido/ManPage.py
index 9c341b6..b13f47f 100755
--- a/Demo/tkinter/guido/ManPage.py
+++ b/Demo/tkinter/guido/ManPage.py
@@ -111,14 +111,14 @@ class EditableManPage(ScrolledText):
self.lineno = self.lineno + 1
def insert_prop(self, str, prop = ' '):
- here = self.index(AtInsert())
- self.insert(AtInsert(), str[0])
+ here = self.index('end')
+ self.insert('end', str[0])
tags = self.tag_names(here)
for tag in tags:
self.tag_remove(tag, here)
if prop != ' ':
self.tag_add(prop, here)
- self.insert(AtInsert(), str[1:])
+ self.insert('end', str[1:])
# Readonly Man Page class -- disables editing, otherwise the same
class ReadonlyManPage(EditableManPage):