(title='Password', text='Enter your password', hidden=True)
return password
Application and platform specific GUI getpass.

  Args:
    title: string for title of window
    text: string for promp text
    hidden: bool whether to show user input
  Returns:
    password as string
Application and platform specific GUI getpass.
Application and platform specific GUI getpass .
def _GetPasswordGUI(title='Password', text='Enter your password', hidden=True):
  """Application and platform specific GUI getpass.

  Args:
    title: string for title of window
    text: string for promp text
    hidden: bool whether to show user input
  Returns:
    password as string
  """
  pwprompt = cocoadialog.Standard_InputBox()
  if hidden:
    pwprompt.SetPasswordBox()
  pwprompt._title = title  # pylint: disable=protected-access
  pwprompt._informative_text = text  # pylint: disable=protected-access
  output = pwprompt.Show()
  password = output.split('\n')[1]
  return password
def _GetPasswordGUI ( title = 'Password' , text = 'Enter your password' , hidden = True ) : pwprompt = cocoadialog . Standard_InputBox ( ) if hidden : pwprompt . SetPasswordBox ( ) pwprompt . _title = title # pylint: disable=protected-access pwprompt . _informative_text = text # pylint: disable=protected-access output = pwprompt . Show ( ) password = output . split ( '\n' ) [ 1 ] return password