home *** CD-ROM | disk | FTP | other *** search
/ PCNET 2006 October - Disc 3 / PCNET_CD_2006_10_3.iso / apps / ShutterflyStudioInstaller_ext.exe / Scripts / promptTest.py < prev    next >
Encoding:
Python Source  |  2005-05-13  |  764 b   |  25 lines

  1. from mmwindowing import *
  2. from mmcommon import *
  3.  
  4. #MMDoPrompt.Message("Hi Lou");
  5.  
  6. #result = MMDoPrompt.YesOrNo("Yes or no","Da", "No");
  7. #if (result):
  8. #    print "You said da";
  9. #else:
  10. #    print "you said no"
  11.  
  12. #dialogOk, result = MMDoPrompt.GetString("1 million dollars", "How much are we worth?", "This much", "No money talk");
  13. #if (dialogOk):
  14. #    print "The result is", result
  15. #else:
  16. #    print "Cancelled?"
  17. MMDoPrompt.UsernamePassword("Password please", "Okey","Nah", "Userama", "Pasties", 0);
  18.  
  19. dialogOk, username, password, remember = MMDoPrompt.UsernamePassword("Password please", "Okey","Nah", "Userama", "Pasties", 0);
  20. if (dialogOk):
  21.     print "Username:", username
  22.     print "Password:", password
  23.     print "Remember:", remember
  24. else:
  25.     print "Cancelled"