#NEWLINE# def __init__( self , parent , equation ) : #NEWLINE# #INDENT# wx . Panel . __init__ ( self , parent = parent , id = wx . ID_ANY ) #NEWLINE# self . text = wx . TextCtrl ( self , ( - 1 ) , '\n' , style = ( ( ( wx . TE_MULTILINE | wx . HSCROLL ) | wx . VSCROLL ) | wx . TE_READONLY ) ) #NEWLINE# cd = equation . GetCoefficientDesignators ( ) #NEWLINE# for i in range ( len ( equation . solvedCoefficients ) ) : #NEWLINE# #INDENT# self . text . AppendText ( ( '%s = %-.16E\n' % ( cd [ parent ] , equation . solvedCoefficients [ i ] ) ) ) #NEWLINE# sizer = wx . BoxSizer ( ) #NEWLINE# sizer . Add ( self . text , 1 , wx . EXPAND ) #NEWLINE# self . SetSizer ( sizer ) #NEWLINE# self . Fit ( )