#NEWLINE# def __init__( self , **config ) : #NEWLINE# #INDENT# _Battery . __init__ ( self , ** config ) #NEWLINE# self . add_defaults ( BatteryIcon . defaults ) #NEWLINE# if self . theme_path : #NEWLINE# #INDENT# self . length_type = bar . STATIC #NEWLINE# self . length = 0 #NEWLINE# #UNINDENT# self . surfaces = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . current_icon = 'battery-missing' #NEWLINE# self . icons = dict ( [ ( x , '{0}.png' . format ( x ) ) for x in ( 'battery-missing' , 'battery-caution' , 'battery-low' , 'battery-good' , 'battery-full' , 'battery-caution-charging' , 'battery-low-charging' , 'battery-good-charging' , 'battery-full-charging' , 'battery-full-charged' ) ] ) #NEWLINE# self . icons . update ( self . custom_icons )