本文整理汇总了Python中processing.gui.HelpEditionDialog.HelpEditionDialog.exec_方法的典型用法代码示例。如果您正苦于以下问题:Python HelpEditionDialog.exec_方法的具体用法?Python HelpEditionDialog.exec_怎么用?Python HelpEditionDialog.exec_使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类processing.gui.HelpEditionDialog.HelpEditionDialog
的用法示例。
在下文中一共展示了HelpEditionDialog.exec_方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: editHelp
# 需要导入模块: from processing.gui.HelpEditionDialog import HelpEditionDialog [as 别名]
# 或者: from processing.gui.HelpEditionDialog.HelpEditionDialog import exec_ [as 别名]
def editHelp(self):
alg = self.alg
dlg = HelpEditionDialog(alg)
dlg.exec_()
if dlg.descriptions:
self.alg.helpContent = dlg.descriptions
self.hasChanged = True
示例2: editHelp
# 需要导入模块: from processing.gui.HelpEditionDialog import HelpEditionDialog [as 别名]
# 或者: from processing.gui.HelpEditionDialog.HelpEditionDialog import exec_ [as 别名]
def editHelp(self):
alg = self.model
dlg = HelpEditionDialog(alg)
dlg.exec_()
if dlg.descriptions:
self.model.setHelpContent(dlg.descriptions)
self.hasChanged = True
示例3: editHelp
# 需要导入模块: from processing.gui.HelpEditionDialog import HelpEditionDialog [as 别名]
# 或者: from processing.gui.HelpEditionDialog.HelpEditionDialog import exec_ [as 别名]
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
示例4: editHelp
# 需要导入模块: from processing.gui.HelpEditionDialog import HelpEditionDialog [as 别名]
# 或者: from processing.gui.HelpEditionDialog.HelpEditionDialog import exec_ [as 别名]
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
示例5: editHelp
# 需要导入模块: from processing.gui.HelpEditionDialog import HelpEditionDialog [as 别名]
# 或者: from processing.gui.HelpEditionDialog.HelpEditionDialog import exec_ [as 别名]
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
示例6: editHelp
# 需要导入模块: from processing.gui.HelpEditionDialog import HelpEditionDialog [as 别名]
# 或者: from processing.gui.HelpEditionDialog.HelpEditionDialog import exec_ [as 别名]
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)
示例7: editHelp
# 需要导入模块: from processing.gui.HelpEditionDialog import HelpEditionDialog [as 别名]
# 或者: from processing.gui.HelpEditionDialog.HelpEditionDialog import exec_ [as 别名]
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