I have visited this question and tried everything mentioned with no success:
How do I set IDLE as default editor for python scripts
Ubuntu 12.04
Python 2.7
IDLE(Using Python-2.7)
When I right click a .py file:
- IDLE does not show up in the first menu (the only option is Gedit).
- IDLE does not show up in 'Open With Other Application…' menu
- IDLE does not show up in 'Show other applicatons' menu
I had found the solution to this problem online before, for a previous Ubuntu 12.04 installation, but cannot locate it again.
I imagine this can be fixed through file associations?
Additionally, IDLE windows do not possess an icon and show as a grey box with a '?'.
Best Answer
I found an answer that worked for me here: http://ubuntuforums.org/showthread.php?t=1801149
enter the following in terminal:
Add the following to the file:
Save and close that file, and enter the following in terminal:
Search for "text/x-python=" in the file, or add it if not there, and add the following to the end of it:
Worked for me! Cheers.