Browse Source

added enterText

Darren Ranalli 23 years ago
parent
commit
c00e8a1926
1 changed files with 4 additions and 2 deletions
  1. 4 2
      direct/src/gui/DirectEntry.py

+ 4 - 2
direct/src/gui/DirectEntry.py

@@ -156,5 +156,7 @@ class DirectEntry(DirectFrame):
         else:
         else:
             self.guiItem.setCursorPosition(pos)
             self.guiItem.setCursorPosition(pos)
             
             
-
-
+    def enterText(self, text):
+        """ sets the entry's text, and moves the cursor to the end """
+        self.set(text)
+        self.setCursorPosition(len(self.get()))