|
|
@@ -302,12 +302,18 @@ class DirectEntry(DirectFrame):
|
|
|
else:
|
|
|
return self.guiItem.getText()
|
|
|
|
|
|
+ def getCursorPosition(self):
|
|
|
+ return self.guiItem.getCursorPosition()
|
|
|
+
|
|
|
def setCursorPosition(self, pos):
|
|
|
if (pos < 0):
|
|
|
self.guiItem.setCursorPosition(self.guiItem.getNumCharacters() + pos)
|
|
|
else:
|
|
|
self.guiItem.setCursorPosition(pos)
|
|
|
|
|
|
+ def getNumCharacters(self):
|
|
|
+ return self.guiItem.getNumCharacters()
|
|
|
+
|
|
|
def enterText(self, text):
|
|
|
""" sets the entry's text, and moves the cursor to the end """
|
|
|
self.set(text)
|