mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
added enterText
This commit is contained in:
parent
93d73a2b4e
commit
c00e8a1926
@ -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()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user