mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Always insert at 'end'
This commit is contained in:
parent
fdfa2b5136
commit
9755b26fa9
1 changed files with 3 additions and 3 deletions
|
|
@ -111,14 +111,14 @@ class EditableManPage(ScrolledText):
|
||||||
self.lineno = self.lineno + 1
|
self.lineno = self.lineno + 1
|
||||||
|
|
||||||
def insert_prop(self, str, prop = ' '):
|
def insert_prop(self, str, prop = ' '):
|
||||||
here = self.index(AtInsert())
|
here = self.index('end')
|
||||||
self.insert(AtInsert(), str[0])
|
self.insert('end', str[0])
|
||||||
tags = self.tag_names(here)
|
tags = self.tag_names(here)
|
||||||
for tag in tags:
|
for tag in tags:
|
||||||
self.tag_remove(tag, here)
|
self.tag_remove(tag, here)
|
||||||
if prop != ' ':
|
if prop != ' ':
|
||||||
self.tag_add(prop, here)
|
self.tag_add(prop, here)
|
||||||
self.insert(AtInsert(), str[1:])
|
self.insert('end', str[1:])
|
||||||
|
|
||||||
# Readonly Man Page class -- disables editing, otherwise the same
|
# Readonly Man Page class -- disables editing, otherwise the same
|
||||||
class ReadonlyManPage(EditableManPage):
|
class ReadonlyManPage(EditableManPage):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue