As a follow-up on #7237 (Adding Copy button to GUI tool dialogs) I would limit the selection of Python APIs to the Tools API only. It is the recommended API and it will be less confusing.
The other thing is, it should remember the last selection, so when a new dialog is opened, it will be the same.
There are some other tweaks, e.g. for r.colors rules typed directly into the field, it should use StringIO, instead of the temporary file.
Otherwise this is great addition and look forward to using it.
As a follow-up on #7237 (Adding Copy button to GUI tool dialogs) I would limit the selection of Python APIs to the Tools API only. It is the recommended API and it will be less confusing.
The other thing is, it should remember the last selection, so when a new dialog is opened, it will be the same.
There are some other tweaks, e.g. for r.colors rules typed directly into the field, it should use StringIO, instead of the temporary file.
Otherwise this is great addition and look forward to using it.