Use text object's new settext() method.
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 @@
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 @@
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)