mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
[processing] ressurect 'new script' action
This commit is contained in:
parent
7115e044e3
commit
472b8bf6bf
@ -33,17 +33,12 @@ from processing.gui.ToolboxAction import ToolboxAction
|
|||||||
|
|
||||||
from processing.script.ScriptEditorDialog import ScriptEditorDialog
|
from processing.script.ScriptEditorDialog import ScriptEditorDialog
|
||||||
|
|
||||||
pluginPath = os.path.split(os.path.dirname(__file__))[0]
|
|
||||||
|
|
||||||
|
|
||||||
class CreateNewScriptAction(ToolboxAction):
|
class CreateNewScriptAction(ToolboxAction):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.name = self.tr('Create new script')
|
self.name = self.tr("Create new script")
|
||||||
self.group = self.tr('Tools')
|
self.group = self.tr("Tools")
|
||||||
|
|
||||||
def getIcon(self):
|
|
||||||
return QgsApplication.getThemeIcon("/processingScript.svg")
|
|
||||||
|
|
||||||
def execute(self):
|
def execute(self):
|
||||||
dlg = ScriptEditorDialog(None)
|
dlg = ScriptEditorDialog(None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user