Ejemplo n.º 1
0
 def __init__(self, minhas_palavras_chaves=None, parent=None):
     minhas_palavras_chaves = get_words('1') + get_words('2') + get_words(
         '3') + get_words('4')
     minhas_palavras_chaves = sorted(minhas_palavras_chaves)
     minhas_palavras_chaves = list(set(minhas_palavras_chaves))
     QCompleter.__init__(self, minhas_palavras_chaves, parent)
     self.activated.connect(self.changeCompletion)
Ejemplo n.º 2
0
    def __init__(self, parent, tags):
        QCompleter.__init__(self, tags, parent)
        self.setTags(tags)
        self.setWidget(parent)

        # Bidirectional dependency is meh but easier to use this way
        # than having to subclass line edit too as in the original solution
        parent.textChanged.connect(self.handleLineEditTextChanged)
        self.activated.connect(self.handleSelfActivated)
        self.setCaseSensitivity(QtCore.Qt.CaseInsensitive)
        self.setCompletionMode(QtWidgets.QCompleter.PopupCompletion)
        self.setFilterMode(QtCore.Qt.MatchContains)
Ejemplo n.º 3
0
 def __init__(self, myKeywords=None, parent=None):
     myKeywords = [
         'api.findExport(', 'api.addWatcher(', 'console', 'console.log(',
         'log', 'addWatcher', 'deleteHook', 'enumerateJavaClasses',
         'enumerateJavaMethods', 'findExport', 'getAddressTs',
         'hookAllJavaMethods', 'hookJava', 'hookNative'
         'hookOnLoad', 'javaBacktrace', 'isAddressWatched',
         'nativeBacktrace', 'release', 'removeWatcher', 'restart',
         'setData',
         # trace
         'startNativeTracer',
         'stopNativeTracer',
         # emu
         'emulator',
         'emulator.clean()',
         'emulator.start(',
         'emulator.step()',
         'emulator.stop()',
     ]
     QCompleter.__init__(self, myKeywords, parent)
     self.setCompletionMode(QCompleter.PopupCompletion)
     self.highlighted.connect(self.setHighlighted)
Ejemplo n.º 4
0
 def __init__(self, keywords, parent=None):
     QCompleter.__init__(self, keywords, parent)
     self.setCompletionMode(QCompleter.PopupCompletion)
     self.highlighted.connect(self.setHighlighted)
Ejemplo n.º 5
0
def __init__(self, parent=None):
    QCompleter.__init__(self, ["test","foo","bar"], parent)
    self.setCompletionMode(QCompleter.PopupCompletion)
    self.highlighted.connect(self.setHighlighted)
Ejemplo n.º 6
0
    def __init__(self, myKeywords=None, parent=None):
        self.wordList = wordList
        QCompleter.__init__(self, myKeywords, parent)

        self.activated.connect(self.changeCompletion)
Ejemplo n.º 7
0
	def __init__(self, parent=None):
		QCompleter.__init__(self, keyword.kwlist, parent)
		self.setCompletionMode(QCompleter.PopupCompletion)
		self.highlighted.connect(self.setHighlighted)
		self.setCaseSensitivity(QtCore.Qt.CaseInsensitive)
Ejemplo n.º 8
0
 def __init__(self, parent=None):
     words = str.split(BrainKeyDictionary.upper(), ",") #.split(" ")
     QCompleter.__init__(self, words, parent)
     self.setCompletionMode(QCompleter.PopupCompletion)
     self.highlighted.connect(self.setHighlighted)