To add autocomplete function in PyScripter Interactive Console?

1,243 views
Skip to first unread message

Chen Kee

unread,
Jun 13, 2011, 1:06:44 PM6/13/11
to PyScripter
All,

In a python console, we can use:

>>> import readline
>>> import rlcompleter
>>> readline.parse_and_bind("tab: complete")


To add auto complete functIon, but this is not working in PyScripter's
Interactive Console, may I know how to fix it?

Thanks!

PyScripter

unread,
Jun 13, 2011, 2:54:02 PM6/13/11
to PyScripter
In PyScripter to get autocompletion you press Ctrl+Space. It should
automatically come up when you type the ".".

e.g,

>>> import sys
>>> sys. <- You should get the autocompletion window popping up.

You can complete with Tab, Enter or a bracket etc.

Chen Kee

unread,
Jun 14, 2011, 5:30:28 AM6/14/11
to PyScripter


PyScripter,

Thanks for the hint, very useful, but that is not a "fully" auto
complete function, it can not complete the keywords like
"import" (think ipython or using the my code above on a pure python
console), is it still possible?.

And more, the PyScripter's Interactive Console can not print the
module "progressbar"'s output in right format, bascially I think it
can not support the "\b" output, is it solveable?

B.Rgs.

PyScripter

unread,
Jun 14, 2011, 7:23:58 AM6/14/11
to pyscr...@googlegroups.com
Indeed \b is not supported.  Keyword autocompletion was not considered particularly useful and was not supported.  You can autocomplete the import statement though getting a list of modules and identifiers you can import.
Reply all
Reply to author
Forward
0 new messages