[Eric] Eric5 and Spyder
Detlev Offenbach
detlev at die-offenbachs.de
Thu Oct 13 18:03:47 BST 2011
Hello,
the code completion of eric relies on so called API-files. These contain information about the various APIs. Eric doesn't do a 'dynamic' auto-completion. The standard completion behavior is supplied by the QScintilla library. There is an extended auto-completion available via the assistant plug-in. That is available via the Plug-ins Repository (s. Plug-Ins menu). This completes from these sources:
- Python files of your project
- the current document
- API files
The unstable version of this plug-in has been improved such, that it is more selective and only shows relevant entries where possible. Dynamic object resolution works well for standard libraries but fail on quite a bunch like Qt4. That is the reason I refrained from going this path.
Some API files are provided by QScintilla (e.g. for various Python versions), by PyQt4 and by eric itself. If you have a library, that hasn't been processed yet, you may user the eric5_api.py script to generate API files.
Please note, that the Python Shell completion works completely dynamic because the code you enter is executed.
Regards,
Detlev
Am 13.10.2011 um 10:41 schrieb Janwillem van Dijk:
> I have been using Eric5 for some while. I like it in particular because of the simple way it offers for generating python code for the PyQt4 slots and signals. It relieves one from the need to realy understand slots, signals, events et cetra. However, I never could get code completion to work properly. If I e.g. type sys. then I only get the sys methods already used in my own source. In Spyder on the other hand you get all sys methods listed which is for somebody with a memory like mine very convenient. In Spyder you can start QT4Designer but after that it stops; I cannot find more PyQt4 integration in Spyder. So for now it seems Eric5 for the PyQt4 part and Spyder for all other source editing. There must be a better solution. Any suggestions welcome.
> Janwillem
> P.S. My backgound: 15 years Delphi-1 through 7 and since a few years Python (on linux) mainly command line + matplotlib.
> Placed on both Eric and Spyder lists
> _______________________________________________
> Eric mailing list
> Eric at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/eric
Detlev Offenbach
detlev at die-offenbachs.de
More information about the Eric
mailing list