diff options
author | Guido van Rossum <guido@python.org> | 1991-04-21 19:27:48 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-04-21 19:27:48 (GMT) |
commit | a82a27585ab717e660f60a5d8f417d88c8abd3e8 (patch) | |
tree | e140bd2a03864fd3e820eeedace70c160ae3d7ed /Lib/lib-stdwin | |
parent | 7912b008cf432a5408612fff77d4749793678dc9 (diff) | |
download | cpython-a82a27585ab717e660f60a5d8f417d88c8abd3e8.zip cpython-a82a27585ab717e660f60a5d8f417d88c8abd3e8.tar.gz cpython-a82a27585ab717e660f60a5d8f417d88c8abd3e8.tar.bz2 |
Use text object's new settext() method.
Diffstat (limited to 'Lib/lib-stdwin')
-rw-r--r-- | Lib/lib-stdwin/TextEdit.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/lib-stdwin/TextEdit.py b/Lib/lib-stdwin/TextEdit.py index 8d12465..d7b2236 100644 --- a/Lib/lib-stdwin/TextEdit.py +++ b/Lib/lib-stdwin/TextEdit.py @@ -14,6 +14,9 @@ class TextEdit(): self.editor = 0 return self # + def settext(self, text): + self.editor.settext(text) + # # Downcalls from parent to child # def destroy(self): @@ -35,7 +38,7 @@ class TextEdit(): def realize(self): self.window = self.parent.getwindow() self.editor = self.window.textcreate(self.bounds) - self.editor.replace(self.text) + self.editor.settext(self.text) self.parent.need_mouse(self) self.parent.need_keybd(self) self.parent.need_altdraw(self) |