浏览代码

initialText should leave cursor at end of text

David Rose 15 年之前
父节点
当前提交
24f0ffafc6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      direct/src/gui/DirectEntry.py

+ 1 - 1
direct/src/gui/DirectEntry.py

@@ -136,7 +136,7 @@ class DirectEntry(DirectFrame):
         # Update initial text
         self.unicodeText = 0
         if self['initialText']:
-            self.set(self['initialText'])
+            self.enterText(self['initialText'])
 
     def destroy(self):
         self.ignoreAll()