#NEWLINE# def __init__( self , parent , input , * attrs ) : #NEWLINE# #INDENT# wx . Panel . __init__ ( self , parent , ( - 1 ) ) #NEWLINE# self . grid = IGridGrid ( input , input , * attrs ) #NEWLINE# self . grid . FitInside ( ) #NEWLINE# sizer = wx . BoxSizer ( wx . VERTICAL ) #NEWLINE# sizer . Add ( self . grid , proportion = 1 , flag = ( wx . EXPAND | wx . ALL ) , border = 10 ) #NEWLINE# self . SetSizer ( sizer ) #NEWLINE# sizer . Fit ( self ) #NEWLINE# sizer . SetSizeHints ( self )