Guest User

Untitled

a guest
Jul 23rd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. from PyQt5 import Qt
  2.  
  3. app = Qt.QApplication([])
  4.  
  5. le = Qt.QLineEdit()
  6. le.textEdited.connect(lambda text: le.setCursorPosition(1))
  7. le.show()
  8.  
  9. app.exec()
Add Comment
Please, Sign In to add comment