#NEWLINE# def __init__( self , parent ) : #NEWLINE# #INDENT# wx . Panel . __init__ ( self , parent , ( - 1 ) , style = wx . FULL_REPAINT_ON_RESIZE ) #NEWLINE# self . Bind ( wx . EVT_PAINT , parent . OnPaint ) #NEWLINE# self . text = 'This is Thisisareallylongwordtoseewhathappens the text to be drawn. It needs to be long to see if wrapping works.  to long words.\nThis is on new line by itself.\n\nThis should have a blank line in front of it but still wrap when we reach the edge.\n\nThe bottom of the red rectangle should be immediately below this.' #NEWLINE# self . font = wx . Font ( 12 , wx . SWISS , wx . NORMAL , wx . NORMAL , faceName = 'Gill Sans' )