#NEWLINE# def __init__( self , html = None , listener = None , **kwargs ) : #NEWLINE# #INDENT# '\n        Create a new button widget.\n\n        @param html: Html content (e.g. the button label); see setHTML()\n        @param listener: A new click listener; see addClickListener()\n\n        ' #NEWLINE# if ( not kwargs . has_key ( 'StyleName' ) ) : #NEWLINE# #INDENT# kwargs [ 'StyleName' ] = 'gwt-Button' #NEWLINE# #UNINDENT# if html : #NEWLINE# #INDENT# kwargs [ 'HTML' ] = html #NEWLINE# #UNINDENT# if kwargs . has_key ( 'Element' ) : #NEWLINE# #INDENT# element = kwargs . pop ( 'Element' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# element = DOM . createButton ( ) #NEWLINE# #UNINDENT# ButtonBase . __init__ ( self , element , ** kwargs ) #NEWLINE# self . adjustType ( self . getElement ( ) ) #NEWLINE# if ( listener is not None ) : #NEWLINE# #INDENT# self . addClickListener ( listener )