#NEWLINE# def make_toolbar( self ) : #NEWLINE# #INDENT# result = GlueToolbar ( self . central_widget . canvas , self , name = 'Image' ) #NEWLINE# for mode in self . _mouse_modes ( ) : #NEWLINE# #INDENT# result . add_mode ( mode ) #NEWLINE# #UNINDENT# cmap = _colormap_mode ( self , self . client . set_cmap ) #NEWLINE# result . addWidget ( cmap ) #NEWLINE# cl = self . client #NEWLINE# result . buttons [ 'HOME' ] . triggered . connect ( nonpartial ( cl . check_update ) ) #NEWLINE# result . buttons [ 'FORWARD' ] . triggered . connect ( nonpartial ( cl . check_update ) ) #NEWLINE# result . buttons [ 'BACK' ] . triggered . connect ( nonpartial ( cl . check_update ) ) #NEWLINE# return result