[Eric] python autocompletion in the console

Detlev Offenbach detlev at die-offenbachs.de
Thu Dec 27 15:37:23 GMT 2007


On Donnerstag, 27. Dezember 2007, Jake B wrote:
> Hi,
> I'm also having some trouble using python autocompletion in the
> console. The Eric IDE front page states that Eric supports an
> "Interactive Python shell including syntax hilighting and
> autocompletion."
> Here's what I have:
>
> Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
> (Intel)] on beardj, Standard
>
> >>> x=1
> >>> x
>
> 1
>
> >>> x.
>
> At that point, I do control+space, and I would expect to see a list of
> all the methods that are defined for type int (such as __add__, etc.),
> but nothing comes up. Also all the entries in the submenu Edit -->
> Autocomplete are grayed out.
>
> The same thing applies with autocompletion of modules. For example:
> >>> sys.
>
> I would expect to autocomplete, as it does when I edit a document. But
> nothing comes up, and the Autocompletion submenu is still grayed out.
>
> I'd greatly appreciate it if someone could let me know what type of
> console autocompletion eric4 supports, or what I might be doing wrong.
> Much thanks.
>
> Jake

1. Shell autocompletion
This is available pressing the tab key, e.g. x.<Tab key>. That should show a 
list with all the methods available to an integer object.

2. Editor autocompletion and calltips
You have to configure that in the Preferences dialog, Editor->APIs page. Here 
you select Python as the language of choice and press the "Add from installed 
APIs" or add your own API files (these are QScintilla API files).

Regards,
Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the Eric mailing list