From c00e8a1926563befe2e8e76d0ff154298e4f523d Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Tue, 17 Sep 2002 19:04:07 +0000 Subject: [PATCH] added enterText --- direct/src/gui/DirectEntry.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/direct/src/gui/DirectEntry.py b/direct/src/gui/DirectEntry.py index 2743aedc37..a4283377a7 100644 --- a/direct/src/gui/DirectEntry.py +++ b/direct/src/gui/DirectEntry.py @@ -156,5 +156,7 @@ class DirectEntry(DirectFrame): else: 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()))