Gedit - Python ide possible?

Asked by DanielFolsom on 2006-06-15

Thanks to Ecir Hana, that was the answer I needed, however now I have a new question. So everything works EXCEPT I can't have a user-interface, me;ning no input OR raw_input will work, any idea how to fix this?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gedit Edit question
Assignee:
No assignee Edit question
Last query:
2006-06-15
Last reply:
2008-12-04
fzap (pflaumenmus92) said : #1

there is a python class-browser (plugin) available at http://live.gnome.org/Gedit/Plugins

ecir hana (ecir-hana) said : #2

if i understood correctly, here's how:
edit > preferences > plugins > check "external tools" and hit "configure plugin"
then, hit "new" and add following properties:
description: run python script
accelerator: f5
command: python
input: current document
output: insert in output panel
applicability: all documents

hope it helps....

I too have tried to set this up and ran into the same problem. I small workaround is to use the terminal plugin and then type python mydoc.py in the terminal. This works with input and raw_input but of course isn't as convinient as having python bound to F5. There has gotta be a way to do this!

edit > preferences > plugins > check "external tools" and hit "configure plugin"
then, hit "new" and add following properties:
description: run python script
accelerator: f5
command: xterm -e 'python ${GEDIT_CURRENT_DOCUMENT_URI#file://} ; echo -e "\n\n********\nPress Return Key to Exit"; read junk'
input: current document
output: insert in output panel
applicability: all documents

Can you help with this problem?

Provide an answer of your own, or ask DanielFolsom for more information if necessary.

To post a message you must log in.