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