QsciAPIs.load not working
Axel-Erfurt opened this issue · 1 comments
Axel-Erfurt commented
Does QsciAPIs.load not working on Linux (Mint 19) or what is wrong in my code ?
self.api = QsciAPIs(lexer)
pyqt_path = '/home/brian/.local/lib/python3.6/site-packages/PyQt5/Qt/qsci/api/python/PyQt5.api'
py3_path = '/home/brian/.local/lib/python3.6/site-packages/PyQt5/Qt/qsci/api/python/Python-3.6.api'
my_path = "/home/brian/myApps/PyEdit/resources/wordlist.txt"
self.api.load(py3_path)
autocomplete_list = open(my_path).read().splitlines()
if autocomplete_list is not None:
for line in autocomplete_list:
self.api.add(line)
for key in keyword.kwlist + dir(__builtins__):
self.api.add(key)
for importer, name, ispkg in pkgutil.iter_modules():
self.api.add(name)
self.api.prepare()
self.setAutoCompletionThreshold(2)
self.setAutoCompletionSource(QsciScintilla.AcsAll)
self.setAutoCompletionCaseSensitivity(False)
self.setAutoCompletionUseSingle(QsciScintilla.AcusAlways)
self.autoCompleteFromAll()
agarny commented
Sorry, but this repository is not the official QScintilla one. As far as I am aware, there isn't one on GitHub. This repository is just one that we use as part of a QScintilla-based application that we have. So, please, check https://www.riverbankcomputing.com/software/qscintilla/intro instead.