PDA

View Full Version : confirmDialog behaving strangely


DEVILSAN
11-16-2012, 01:44 PM
this is very strange if insel evaluates to False, the confirmDialog doesnt shows up but if I remove the msg from the prompt and leave it empty the confirmDialog works normal

except:
insel= cmds.textField('location',q=True,tx=True)
if not os.path.exists(insel):
msg="You either moved %s folder or renamed it\n Or the Drive that contained thhis folder is not connected.\nWould you like to delete from favorites?"%os.path.basename(insel)
api.MGlobal.displayWarning(msg)
reply=cmds.confirmDialog(t='Warning',msg="Selected favrite item not found on disk.\nDo you want to delete it?",button=['Yes','No'], defaultButton='Yes', cancelButton='No', dismissString='No' )
if reply =="Yes":
accAction=Actions()
accAction.removeSel()

CGTalk Moderation
11-16-2012, 01:44 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.