#NEWLINE# def __init__( self , panel , input , * attrs ) : #NEWLINE# #INDENT# wx . grid . Grid . __init__ ( self , panel ) #NEWLINE# fontsize = 9 #NEWLINE# self . input = input #NEWLINE# self . table = IGridTable ( self . input , fontsize , * attrs ) #NEWLINE# self . SetTable ( self . table , True ) #NEWLINE# self . SetSelectionMode ( wx . grid . Grid . wxGridSelectRows ) #NEWLINE# self . SetDefaultRenderer ( IGridRenderer ( self . table ) ) #NEWLINE# self . EnableEditing ( False ) #NEWLINE# self . Bind ( wx . EVT_KEY_DOWN , self . key_pressed ) #NEWLINE# self . Bind ( wx . grid . EVT_GRID_CELL_LEFT_DCLICK , self . cell_doubleclicked ) #NEWLINE# self . Bind ( wx . grid . EVT_GRID_CELL_LEFT_CLICK , self . cell_leftclicked ) #NEWLINE# self . Bind ( wx . grid . EVT_GRID_LABEL_LEFT_DCLICK , self . label_doubleclicked ) #NEWLINE# self . Bind ( wx . grid . EVT_GRID_LABEL_LEFT_CLICK , self . on_label_leftclick ) #NEWLINE# self . Bind ( wx . grid . EVT_GRID_RANGE_SELECT , self . _on_selected_range ) #NEWLINE# self . Bind ( wx . grid . EVT_GRID_SELECT_CELL , self . _on_selected_cell ) #NEWLINE# self . current_selection = set ( ) #NEWLINE# self . maxchars = 200