[Qgis-developer] [New Feature] - AutoCompletion for QGIS Python Console based on QScintilla2

Salvatore Larosa lrssvtml at gmail.com
Tue Sep 4 08:13:09 PDT 2012


Hello everyone, I am working to implement the auto complete in QGIS
python console.
At the time, I came to this result: [1]
Still a few things missing:
1) run command with multi-line text
2) styled text for errors, traceback, message etc.
3) fix up events when keys are pressed (keyPressEvent)
4) other minor errors.

Basically I changed the class QTextEdit with QsciScintilla using
pieces of code from [2]
and, for API syntax, the files provided by Larry Shaffer (thanks).

I'm having some difficulties as disable the undo/redo and I can not
use styles to the text (font, color, etc) if the Lexer is enabled!

Any feedback and help are welcome!

Regards,

-SL

[1] - http://lrssvt.ns0.it/autocompletion.ogv
[2] - https://code.google.com/p/pydee/

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode


More information about the Qgis-developer mailing list