def _resize_event(event, params):
 size = ','.join([str(s) for s in params['fig'].get_size_inches()])
 set_config('MNE_BROWSE_RAW_SIZE', size, set_env=False)
 _layout_figure(params)

def _resize_event ( event , params ) : size = ',' . join ( [ str ( s ) for s in params [ 'fig' ] . get_size_inches ( ) ] ) set_config ( 'MNE_BROWSE_RAW_SIZE' , size , set_env = False ) _layout_figure ( params )
handle resize event .