Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Python
(view source)
Revision as of 13:59, 23 September 2015
479 bytes added
,
13:59, 23 September 2015
no edit summary
Line 646:
Line 646:
For further reference visit: tutorialspoint.com/python/python_gui_programming.htm
For further reference visit: tutorialspoint.com/python/python_gui_programming.htm
+
+
== Enable auto complete in python interpreter ==
+
Create a file in your home directory named: .pythonrc<br />
+
Content of this file:
+
<source lang="python">
+
import rlcompleter, readline
+
readline.parse_and_bind('tab:complete')
+
</source>
+
Set the PYTHONSTARTUP variable in your .bashrc or .bash_profile
+
echo "export PYTHONSTARTUP=~/.pythonrc" >> .bashrc
+
+
Reload your .bashrc or .bash_profile
+
source ~/.bashrc
+
+
To test it import a library, write librariname. and hit tab twice
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version