当前位置: 首页>>代码示例>>Python>>正文


Python BatchAlgorithmDialog.exec_方法代码示例

本文整理汇总了Python中processing.gui.BatchAlgorithmDialog.BatchAlgorithmDialog.exec_方法的典型用法代码示例。如果您正苦于以下问题:Python BatchAlgorithmDialog.exec_方法的具体用法?Python BatchAlgorithmDialog.exec_怎么用?Python BatchAlgorithmDialog.exec_使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在processing.gui.BatchAlgorithmDialog.BatchAlgorithmDialog的用法示例。


在下文中一共展示了BatchAlgorithmDialog.exec_方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: executeAlgorithmAsBatchProcess

# 需要导入模块: from processing.gui.BatchAlgorithmDialog import BatchAlgorithmDialog [as 别名]
# 或者: from processing.gui.BatchAlgorithmDialog.BatchAlgorithmDialog import exec_ [as 别名]
 def executeAlgorithmAsBatchProcess(self):
     item = self.algorithmTree.currentItem()
     if isinstance(item, TreeAlgorithmItem):
         alg = QgsApplication.processingRegistry().algorithmById(item.alg.id())
         dlg = BatchAlgorithmDialog(alg)
         dlg.show()
         dlg.exec_()
开发者ID:ndavid,项目名称:QGIS,代码行数:9,代码来源:ProcessingToolbox.py

示例2: executeAlgorithmAsBatchProcess

# 需要导入模块: from processing.gui.BatchAlgorithmDialog import BatchAlgorithmDialog [as 别名]
# 或者: from processing.gui.BatchAlgorithmDialog.BatchAlgorithmDialog import exec_ [as 别名]
 def executeAlgorithmAsBatchProcess(self):
     alg = self.algorithmTree.selectedAlgorithm().create() if self.algorithmTree.selectedAlgorithm() is not None else None
     if alg is not None:
         dlg = BatchAlgorithmDialog(alg, iface.mainWindow())
         dlg.setAttribute(Qt.WA_DeleteOnClose)
         dlg.show()
         dlg.exec_()
开发者ID:tomkralidis,项目名称:QGIS,代码行数:9,代码来源:ProcessingToolbox.py

示例3: executeAlgorithmAsBatchProcess

# 需要导入模块: from processing.gui.BatchAlgorithmDialog import BatchAlgorithmDialog [as 别名]
# 或者: from processing.gui.BatchAlgorithmDialog.BatchAlgorithmDialog import exec_ [as 别名]
 def executeAlgorithmAsBatchProcess(self):
     item = self.algorithmTree.currentItem()
     if isinstance(item, TreeAlgorithmItem):
         alg = Processing.getAlgorithm(item.alg.commandLineName())
         alg = alg.getCopy()
         dlg = BatchAlgorithmDialog(alg)
         dlg.exec_()
开发者ID:LingboTang,项目名称:QGIS,代码行数:9,代码来源:ProcessingToolbox.py

示例4: executeAlgorithmAsBatchProcess

# 需要导入模块: from processing.gui.BatchAlgorithmDialog import BatchAlgorithmDialog [as 别名]
# 或者: from processing.gui.BatchAlgorithmDialog.BatchAlgorithmDialog import exec_ [as 别名]
 def executeAlgorithmAsBatchProcess(self):
     item = self.algorithmTree.currentItem()
     if isinstance(item, TreeAlgorithmItem):
         alg = QgsApplication.processingRegistry().createAlgorithmById(item.alg.id())
         if alg:
             dlg = BatchAlgorithmDialog(alg)
             dlg.show()
             dlg.exec_()
             # have to manually delete the dialog - otherwise it's owned by the
             # iface mainWindow and never deleted
             dlg.deleteLater()
开发者ID:nirvn,项目名称:QGIS,代码行数:13,代码来源:ProcessingToolbox.py

示例5: runAsBatch

# 需要导入模块: from processing.gui.BatchAlgorithmDialog import BatchAlgorithmDialog [as 别名]
# 或者: from processing.gui.BatchAlgorithmDialog.BatchAlgorithmDialog import exec_ [as 别名]
 def runAsBatch(self):
     self.close()
     dlg = BatchAlgorithmDialog(self.algorithm().create(), parent=iface.mainWindow())
     dlg.show()
     dlg.exec_()
开发者ID:mbernasocchi,项目名称:QGIS,代码行数:7,代码来源:AlgorithmDialog.py

示例6: runAsBatch

# 需要导入模块: from processing.gui.BatchAlgorithmDialog import BatchAlgorithmDialog [as 别名]
# 或者: from processing.gui.BatchAlgorithmDialog.BatchAlgorithmDialog import exec_ [as 别名]
 def runAsBatch(self):
     self.close()
     dlg = BatchAlgorithmDialog(self.algorithm())
     dlg.show()
     dlg.exec_()
开发者ID:CS-SI,项目名称:QGIS,代码行数:7,代码来源:AlgorithmDialog.py

示例7: runAsBatch

# 需要导入模块: from processing.gui.BatchAlgorithmDialog import BatchAlgorithmDialog [as 别名]
# 或者: from processing.gui.BatchAlgorithmDialog.BatchAlgorithmDialog import exec_ [as 别名]
 def runAsBatch(self):
     dlg = BatchAlgorithmDialog(self.alg)
     dlg.exec_()
开发者ID:dudds6699,项目名称:QGIS,代码行数:5,代码来源:AlgorithmDialog.py

示例8: executeAlgorithmAsBatchProcess

# 需要导入模块: from processing.gui.BatchAlgorithmDialog import BatchAlgorithmDialog [as 别名]
# 或者: from processing.gui.BatchAlgorithmDialog.BatchAlgorithmDialog import exec_ [as 别名]
 def executeAlgorithmAsBatchProcess(self):
     alg = self.algorithmTree.selectedAlgorithm()
     if alg is not None:
         dlg = BatchAlgorithmDialog(alg)
         dlg.show()
         dlg.exec_()
开发者ID:raymondnijssen,项目名称:QGIS,代码行数:8,代码来源:ProcessingToolbox.py


注:本文中的processing.gui.BatchAlgorithmDialog.BatchAlgorithmDialog.exec_方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。