mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
17 lines
493 B
Python
17 lines
493 B
Python
|
from sextante.gui.ContextAction import ContextAction
|
||
|
from sextante.r.RAlgorithm import RAlgorithm
|
||
|
from sextante.r.EditRScriptDialog import EditRScriptDialog
|
||
|
|
||
|
class EditRScriptAction(ContextAction):
|
||
|
|
||
|
def __init__(self):
|
||
|
self.name="Edit R script"
|
||
|
|
||
|
def isEnabled(self):
|
||
|
return isinstance(self.alg, RAlgorithm)
|
||
|
|
||
|
def execute(self):
|
||
|
dlg = EditRScriptDialog(self.alg)
|
||
|
dlg.exec_()
|
||
|
if dlg.update:
|
||
|
self.toolbox.updateTree()
|