本文整理汇总了Python中processing.gui.ScriptEditorDialog.ScriptEditorDialog.exec_方法的典型用法代码示例。如果您正苦于以下问题:Python ScriptEditorDialog.exec_方法的具体用法?Python ScriptEditorDialog.exec_怎么用?Python ScriptEditorDialog.exec_使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类processing.gui.ScriptEditorDialog.ScriptEditorDialog
的用法示例。
在下文中一共展示了ScriptEditorDialog.exec_方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: execute
# 需要导入模块: from processing.gui.ScriptEditorDialog import ScriptEditorDialog [as 别名]
# 或者: from processing.gui.ScriptEditorDialog.ScriptEditorDialog import exec_ [as 别名]
def execute(self):
dlg = None
if self.scriptType == self.SCRIPT_PYTHON:
dlg = ScriptEditorDialog(ScriptEditorDialog.SCRIPT_PYTHON, None)
if self.scriptType == self.SCRIPT_R:
dlg = ScriptEditorDialog(ScriptEditorDialog.SCRIPT_R, None)
dlg.exec_()
if dlg.update:
self.toolbox.updateTree()
示例2: execute
# 需要导入模块: from processing.gui.ScriptEditorDialog import ScriptEditorDialog [as 别名]
# 或者: from processing.gui.ScriptEditorDialog.ScriptEditorDialog import exec_ [as 别名]
def execute(self):
dlg = ScriptEditorDialog(self.scriptType, self.alg)
dlg.show()
dlg.exec_()
if dlg.update:
if self.scriptType == ScriptEditorDialog.SCRIPT_PYTHON:
self.toolbox.updateProvider('script')
elif self.scriptType == ScriptEditorDialog.SCRIPT_R:
self.toolbox.updateProvider('r')
示例3: execute
# 需要导入模块: from processing.gui.ScriptEditorDialog import ScriptEditorDialog [as 别名]
# 或者: from processing.gui.ScriptEditorDialog.ScriptEditorDialog import exec_ [as 别名]
def execute(self):
dlg = ScriptEditorDialog(self.scriptType, self.itemData)
dlg.show()
dlg.exec_()
if dlg.update:
if self.scriptType == ScriptEditorDialog.SCRIPT_PYTHON:
algList.reloadProvider('script')
elif self.scriptType == ScriptEditorDialog.SCRIPT_R:
algList.reloadProvider('r')
示例4: execute
# 需要导入模块: from processing.gui.ScriptEditorDialog import ScriptEditorDialog [as 别名]
# 或者: from processing.gui.ScriptEditorDialog.ScriptEditorDialog import exec_ [as 别名]
def execute(self):
dlg = None
if self.scriptType == self.SCRIPT_PYTHON:
dlg = ScriptEditorDialog(ScriptEditorDialog.SCRIPT_PYTHON, None)
if self.scriptType == self.SCRIPT_R:
dlg = ScriptEditorDialog(ScriptEditorDialog.SCRIPT_R, None)
dlg.show()
dlg.exec_()
if dlg.update:
self.toolbox.updateProvider('model')
示例5: execute
# 需要导入模块: from processing.gui.ScriptEditorDialog import ScriptEditorDialog [as 别名]
# 或者: from processing.gui.ScriptEditorDialog.ScriptEditorDialog import exec_ [as 别名]
def execute(self):
dlg = None
if self.scriptType == self.SCRIPT_PYTHON:
dlg = ScriptEditorDialog(ScriptEditorDialog.SCRIPT_PYTHON, None)
if self.scriptType == self.SCRIPT_R:
dlg = ScriptEditorDialog(ScriptEditorDialog.SCRIPT_R, None)
dlg.show()
dlg.exec_()
if dlg.update:
if self.scriptType == self.SCRIPT_PYTHON:
algList.reloadProvider('script')
elif self.scriptType == self.SCRIPT_R:
algList.reloadProvider('r')
示例6: execute
# 需要导入模块: from processing.gui.ScriptEditorDialog import ScriptEditorDialog [as 别名]
# 或者: from processing.gui.ScriptEditorDialog.ScriptEditorDialog import exec_ [as 别名]
def execute(self):
dlg = ScriptEditorDialog(self.scriptType, self.alg)
dlg.show()
dlg.exec_()
if dlg.update:
self.toolbox.updateTree()