<s> from pyface . image_resource import ImageResource <EOL> from . grid_cell_image_renderer import GridCellImageRenderer <EOL> class EditImageRenderer ( GridCellImageRenderer ) : <EOL> image = ImageResource ( '<STR_LIT>' ) <EOL> def __init__ ( self , ** kw ) : <EOL> super ( EditImageRenderer , self ) . __init__ ( self , ** kw ) <EOL> def get_image_for_cell ( self , grid , row , col ) : <EOL> """<STR_LIT>""" <EOL> obj = grid . GetTable ( ) . model . get_rows_drag_value ( [ row ] ) [ <NUM_LIT:0> ] <EOL> if ( not hasattr ( obj , '<STR_LIT>' ) ) or obj . editable : <EOL> return self . image <EOL> return None <EOL> def _get_text ( self , grid , row , col ) : <EOL> return None </s>
