#NEWLINE# def _on_loginDialog_response( self , widget , response ) : #NEWLINE# #INDENT# handlers = { #NEWLINE# #INDENT# gtk . RESPONSE_NONE : self . _windowClosed , #NEWLINE# gtk . RESPONSE_DELETE_EVENT : self . _windowClosed , #NEWLINE# gtk . RESPONSE_OK : self . _doLogin , #NEWLINE# gtk . RESPONSE_CANCEL : handler . _cancelled , #NEWLINE# #UNINDENT# } #NEWLINE# handler = handlers . get ( response ) #NEWLINE# if ( handler is not None ) : #NEWLINE# #INDENT# handler ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# log . msg ( ( 'Unexpected dialog response %r from %s' % ( response , widget ) ) )