#### PyKDE - Python Bindings for KDE

# class KIO.PasswordDialog |
Table of contents
Modules
kio Classes
All Classes

Module | kio
Class | KIO.PasswordDialog
Inherits | KDialogBase

### methods

- PasswordDialog (prompt, user, enableKeep = 0, modal = 1, parent = 0, name = 0)

  returns a PasswordDialog instance
  Argument | Type | Default
  --- | --- | ---
  prompt | QString |
  user | QString |
  enableKeep | bool | 0
  modal | bool | 1
  parent | QWidget | 0
  name | char | 0

- addCommentLine (label, comment)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  label | QString |
  comment | QString |

- getNameAndPassword (keep, prompt = QString .null, readOnly = 0, caption = QString .null, comment = QString .null, label = QString .null)

  returns (int) user (QString) pass (QString) keep (bool)
  static
  Argument | Type | Default
  --- | --- | ---
  keep | bool |
  prompt | QString | QString .null
  readOnly | bool | 0
  caption | QString | QString .null
  comment | QString | QString .null
  label | QString | QString .null

- keepPassword ()

  returns (bool)

- password ()

  returns (QString)

- setEnableUserField (enable, a0 = 0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  enable | bool |
  a0 | bool | 0

- setKeepPassword (b)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  b | bool |

- setKnownLogins (knownLogins)

  returns nothing
  In versions KDE 3.4.0 and above only
  Argument | Type | Default
  --- | --- | ---
  knownLogins | QMap |

- setPassword (password)

  returns nothing
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  password | QString |

- setPrompt (prompt)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  prompt | QString |

- setUserReadOnly (readOnly)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  readOnly | bool |

- username ()

  returns (QString)