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


Python HelpEditionDialog.HelpEditionDialog类代码示例

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


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

示例1: editHelp

 def editHelp(self):
     alg = self.alg
     dlg = HelpEditionDialog(alg)
     dlg.exec_()
     if dlg.descriptions:
         self.alg.helpContent = dlg.descriptions
         self.hasChanged = True
开发者ID:rskelly,项目名称:QGIS,代码行数:7,代码来源:ModelerDialog.py

示例2: editHelp

 def editHelp(self):
     alg = self.model
     dlg = HelpEditionDialog(alg)
     dlg.exec_()
     if dlg.descriptions:
         self.model.setHelpContent(dlg.descriptions)
         self.hasChanged = True
开发者ID:dwsilk,项目名称:QGIS,代码行数:7,代码来源:ModelerDialog.py

示例3: editHelp

 def editHelp(self):
     if self.alg.provider is None:
         # Might happen if model is opened from modeler dialog
         self.alg.provider = ModelerUtils.providers['model']
     alg = self.alg.getCopy()
     dlg = HelpEditionDialog(alg)
     dlg.exec_()
     if dlg.descriptions:
         self.alg.helpContent = dlg.descriptions
         self.hasChanged = True
开发者ID:FrancisGauthier,项目名称:QGIS,代码行数:10,代码来源:ModelerDialog.py

示例4: editHelp

 def editHelp(self):
     if self.alg.provider is None:
         # Might happen if model is opened from modeler dialog
         self.alg.provider = algList.getProviderFromName("model")
     alg = self.alg.getCopy()
     dlg = HelpEditionDialog(alg)
     dlg.exec_()
     if dlg.descriptions:
         self.alg.helpContent = dlg.descriptions
         self.hasChanged = True
开发者ID:rouault,项目名称:Quantum-GIS,代码行数:10,代码来源:ModelerDialog.py

示例5: editHelp

 def editHelp(self):
     if self.alg is None:
         alg = RAlgorithm(None, unicode(self.text.toPlainText()))
     else:
         alg = self.alg
     dlg = HelpEditionDialog(alg)
     dlg.exec_()
     #We store the description string in case there were not saved because there was no
     #filename defined yet
     if self.alg is None and dlg.descriptions:
         self.help = dlg.descriptions
开发者ID:artfwo,项目名称:Quantum-GIS,代码行数:11,代码来源:EditRScriptDialog.py

示例6: editHelp

    def editHelp(self):
        if self.alg is None:
            if self.algType == self.SCRIPT_PYTHON:
                alg = ScriptAlgorithm(None, self.editor.text())
        else:
            alg = self.alg

        dlg = HelpEditionDialog(alg)
        dlg.exec_()
        if dlg.descriptions:
            self.help = dlg.descriptions
            self.setHasChanged(True)
开发者ID:nirvn,项目名称:QGIS,代码行数:12,代码来源:ScriptEditorDialog.py

示例7: editHelp

    def editHelp(self):
        if self.alg is None:
            if self.algType == self.SCRIPT_PYTHON:
                alg = ScriptAlgorithm(None, unicode(self.editor.text()))
            elif self.algType == self.SCRIPT_R:
                alg = RAlgorithm(None, unicode(self.editor.text()))
        else:
            alg = self.alg

        dlg = HelpEditionDialog(alg)
        dlg.exec_()

        # We store the description string in case there were not saved
        # because there was no filename defined yet
        if self.alg is None and dlg.descriptions:
            self.help = dlg.descriptions
开发者ID:vpicavet,项目名称:Quantum-GIS,代码行数:16,代码来源:ScriptEditorDialog.py


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