本文整理汇总了Python中ngSkinTools.utils.Utils.confirmDialog方法的典型用法代码示例。如果您正苦于以下问题:Python Utils.confirmDialog方法的具体用法?Python Utils.confirmDialog怎么用?Python Utils.confirmDialog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ngSkinTools.utils.Utils
的用法示例。
在下文中一共展示了Utils.confirmDialog方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: closeDialogWithResult
# 需要导入模块: from ngSkinTools.utils import Utils [as 别名]
# 或者: from ngSkinTools.utils.Utils import confirmDialog [as 别名]
def closeDialogWithResult(self, buttonID):
if buttonID==self.BUTTON_OK:
self.controls.name.setValue(self.controls.name.getValue().strip())
# check if valid layer name was entered
# new layer mode should allow empty value
if not self.newLayerMode and self.layerNameValue.get().strip()=='':
Utils.confirmDialog( title='Validation Error', message="layer name cannot be blank", button=['Ok'], defaultButton='Ok')
return
BaseDialog.closeDialogWithResult(self, buttonID)
示例2: execCleanNodes
# 需要导入模块: from ngSkinTools.utils import Utils [as 别名]
# 或者: from ngSkinTools.utils.Utils import confirmDialog [as 别名]
def execCleanNodes(self,*args):
if not LayerUtils.hasCustomNodes():
Utils.confirmDialog(icon='information', title='Info', message='Scene does not contain any custom ngSkinTools nodes.', button=['Ok']);
return
message = 'This command deletes all custom nodes from ngSkinTools plugin. Skin weights will be preserved, but all layer data will be lost. Do you want to continue?'
if Utils.confirmDialog(
icon='warning',
title='Warning',
message=message,
button=['Yes','No'], defaultButton='No')!='Yes':
return
LayerDataModel.getInstance().cleanCustomNodes()
示例3: getImportOptions
# 需要导入模块: from ngSkinTools.utils import Utils [as 别名]
# 或者: from ngSkinTools.utils.Utils import confirmDialog [as 别名]
def getImportOptions(self):
options = ImportOptions()
if self.getMll().getLayersAvailable():
if Utils.confirmDialog(
icon='question',
title='Import',
message='Do you want to keep existing layers?',
button=['Yes','No'], defaultButton='Yes')=='No':
options.keepExistingLayers = False
return options