本文整理匯總了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()