Set Selection support in Input.Update. Detecting ENTER key in auto complete demo

This commit is contained in:
MikeTheWatchGuy 2018-12-01 16:05:40 -05:00
parent 7e8e120fa1
commit 8abca2ea6e
2 changed files with 6 additions and 4 deletions

View file

@ -548,7 +548,7 @@ class InputText(Element):
self.QT_QLineEdit.setText(str(value))
self.DefaultText = value
if select:
self.QT_QLineEdit.setSelection()
self.QT_QLineEdit.setSelection(0,QtGui.QTextCursor.End )
def Get(self):
return self.QT_QLineEdit.text()