Opened 13 years ago
Last modified 13 years ago
#3408 new patch
Enhancement - Patch to add extra edit area and syntax highlighting to python console
Reported by: | NathanW | Owned by: | wonder |
---|---|---|---|
Priority: | minor: annoyance | Milestone: | Version 1.7.0 |
Component: | Python plugins and bindings | Version: | Trunk |
Keywords: | Cc: | ||
Must Fix for Release: | No | Platform: | All |
Platform Version: | Awaiting user input: | no |
Description
This patch adds a second non-interactive python coding area to the python console. This lets the users write and rearrange python code before running it in the interactive console. Code from the edit area can be run in the interactive area using ctrl+return.
Syntax highlighting has also been implemented, for both the interactive console and the new edit area.
I also run reindent.py which is why the patch has more then what was just added by me.
Attachments (1)
Change History (4)
by , 13 years ago
Attachment: | ConsoleEditArea.patch added |
---|
comment:1 by , 13 years ago
Type: | enhancement → patch |
---|
comment:2 by , 13 years ago
comment:3 by , 13 years ago
No worries. I agree with both points, and both were a concern of mine when I first wrote it. Now that other people are thinking the same I will see how I can improve the usability.
I didn't know about Mark Summerfield's example. That will help a lot.
- Nathan
Finally I've got time to take a look at your patch. The proposed improvements are welcome, though I have some comments on the functionality:
It would be good to address the issues mentioned above in order to get this into trunk.
Btw. maybe you are aware of Mark Summerfield's nice example of an interactive python console with GUI. It can also do completion and shows tooltips with help on method arguments. It can serve as a source of inspiration for further improvements of the python console in qgis: http://www.qtrac.eu/sandbox.pyw
Martin