summaryrefslogtreecommitdiff
path: root/Demo/tkinter/guido/ManPage.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-07-08 09:17:26 +0000
committerGuido van Rossum <guido@python.org>1994-07-08 09:17:26 +0000
commit80b01c98cea9fb1e943981fa197ccef386c90dbd (patch)
treeecb86db5f06501175241861869269b14eaf09836 /Demo/tkinter/guido/ManPage.py
parent0a614649302f5f8e72718dc690471dec28ab9366 (diff)
downloadcpython-80b01c98cea9fb1e943981fa197ccef386c90dbd.tar.gz
Always insert at 'end'
Diffstat (limited to 'Demo/tkinter/guido/ManPage.py')
-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 9c341b6274..b13f47f279 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):