Table of Contents

Class: AuthDialog src/dialogs.py

A dialog box that prompts the user for a username and a password for a given URL. Includes an option for the application to remember the credentials. Inherits from gtk.Dialog.

Methods   
__init__
__set_authtype
__set_url
get_password
get_remember
get_username
run
show
show_all
  __init__ 
__init__ (
        self,
        url=None,
        authtype=None,
        )

Creates the widgets and dialog and sets the URL and authtype for the box

  __set_authtype 
__set_authtype ( self,  authtype )

A private method for setting the authtype. Called by the constructor.

  __set_url 
__set_url ( self,  url )

A private method for setting the url. Called by the constructor.

  get_password 
get_password ( self )

Return the password specified by the user in the dialog

  get_remember 
get_remember ( self )

Return the status of the "Remember" gtk.CheckButton setting.

  get_username 
get_username ( self )

Return the username specified by the user in the dialog

  run 
run ( self )

Run the dialog. This is here only so that children may override/

  show 
show ( self )

The show method of gtk.Dialog isn't very useful for this particular class, so we override here to call the show_all method instead

  show_all 
show_all ( self )

This method automatically -packs the widgets into the gtk.VBox in the inherited gtk.Dialog and then runs its ancestor to show the dialog.


Table of Contents

This document was automatically generated on Sun Feb 3 17:55:12 2008 by HappyDoc version 2.1