Skip to content

Commit

Permalink
Always insert at 'end'
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Jul 8, 1994
1 parent fdfa2b5 commit 9755b26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Demo/tkinter/guido/ManPage.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@ def parseline(self, nextline):
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):
Expand Down

0 comments on commit 9755b26

Please sign in to comment.