parameters: (prompt,  default='', id=264, ok=None, cancel=None)
docstring: Display a PROMPT string and a text entry field with a DEFAULT string.
      The string is displayed as bullets only.
  
      Return the contents of the text entry field when the user clicks the
      OK button or presses Return.
      Return None when the user clicks the Cancel button.
  
      If omitted, DEFAULT is empty.
  
      The PROMPT and DEFAULT strings, as well as the return value,
      can be at most 255 characters long.
docstring_summary: Display a PROMPT string and a text entry field with a DEFAULT string.
      The string is displayed as bullets only.
docstring_tokens: Display a PROMPT string and a text entry field with a DEFAULT string . The string is displayed as bullets only .
function: def AskPassword(prompt,  default='', id=264, ok=None, cancel=None):
      """Display a PROMPT string and a text entry field with a DEFAULT string.
      The string is displayed as bullets only.
  
      Return the contents of the text entry field when the user clicks the
      OK button or presses Return.
      Return None when the user clicks the Cancel button.
  
      If omitted, DEFAULT is empty.
  
      The PROMPT and DEFAULT strings, as well as the return value,
      can be at most 255 characters long.
      """
      _initialize()
      _interact()
      d = GetNewDialog(id, -1)
      if not d:
          print "EasyDialogs: Can't get DLOG resource with id =", id, " (missing resource file?)"
          return
      h = d.GetDialogItemAsControl(3)
      SetDialogItemText(h, lf2cr(prompt))
      pwd = d.GetDialogItemAsControl(4)
      bullets = '\245'*len(default)
  ##      SetControlData(pwd, kControlEditTextPart, kControlEditTextTextTag, bullets)
      SetControlData(pwd, kControlEditTextPart, kControlEditTextPasswordTag, default)
      d.SelectDialogItemText(4, 0, 999)
      Ctl.SetKeyboardFocus(d.GetDialogWindow(), pwd, kControlEditTextPart)
      if ok is not None:
          h = d.GetDialogItemAsControl(1)
          h.SetControlTitle(ok)
      if cancel is not None:
          h = d.GetDialogItemAsControl(2)
          h.SetControlTitle(cancel)
      d.SetDialogDefaultItem(Dialogs.ok)
      d.SetDialogCancelItem(Dialogs.cancel)
      d.AutoSizeDialog()
      d.GetDialogWindow().ShowWindow()
      while 1:
          n = ModalDialog(None)
          if n == 1:
              h = d.GetDialogItemAsControl(4)
              return cr2lf(GetControlData(pwd, kControlEditTextPart, kControlEditTextPasswordTag))
          if n == 2: return None
function_tokens: def AskPassword ( prompt , default = '' , id = 264 , ok = None , cancel = None ) : _initialize ( ) _interact ( ) d = GetNewDialog ( id , - 1 ) if not d : print "EasyDialogs: Can't get DLOG resource with id =" , id , " (missing resource file?)" return h = d . GetDialogItemAsControl ( 3 ) SetDialogItemText ( h , lf2cr ( prompt ) ) pwd = d . GetDialogItemAsControl ( 4 ) bullets = '\245' * len ( default ) ##      SetControlData(pwd, kControlEditTextPart, kControlEditTextTextTag, bullets) SetControlData ( pwd , kControlEditTextPart , kControlEditTextPasswordTag , default ) d . SelectDialogItemText ( 4 , 0 , 999 ) Ctl . SetKeyboardFocus ( d . GetDialogWindow ( ) , pwd , kControlEditTextPart ) if ok is not None : h = d . GetDialogItemAsControl ( 1 ) h . SetControlTitle ( ok ) if cancel is not None : h = d . GetDialogItemAsControl ( 2 ) h . SetControlTitle ( cancel ) d . SetDialogDefaultItem ( Dialogs . ok ) d . SetDialogCancelItem ( Dialogs . cancel ) d . AutoSizeDialog ( ) d . GetDialogWindow ( ) . ShowWindow ( ) while 1 : n = ModalDialog ( None ) if n == 1 : h = d . GetDialogItemAsControl ( 4 ) return cr2lf ( GetControlData ( pwd , kControlEditTextPart , kControlEditTextPasswordTag ) ) if n == 2 : return None