コード例 #1
0
 def insertCompletion(self, completion):
     CompletionTextEdit.insertCompletion(self, completion)
     self.textCursor().insertText("\n")
コード例 #2
0
 def __init__(self, parent=None):
     self.known_drugs = []
     CompletionTextEdit.__init__(self, parent)
コード例 #3
0
 def setText(self, text):
     LOGGER.debug("setting text %s", text)
     CompletionTextEdit.setText(self, text.strip("\n").title())
     cursor = self.textCursor()
     cursor.movePosition(cursor.End, cursor.MoveAnchor)
     self.setTextCursor(cursor)
コード例 #4
0
 def insertCompletion(self, completion):
     CompletionTextEdit.insertCompletion(self, completion)
     self.textCursor().insertText("\n")
コード例 #5
0
 def __init__(self, parent=None):
     self.known_drugs = []
     CompletionTextEdit.__init__(self, parent)
コード例 #6
0
 def setText(self, text):
     LOGGER.debug("setting text %s", text)
     CompletionTextEdit.setText(self, text.strip("\n").title())
     cursor = self.textCursor()
     cursor.movePosition(cursor.End, cursor.MoveAnchor)
     self.setTextCursor(cursor)