#NEWLINE# def createMainPanel( self ) : #NEWLINE# #INDENT# ctrlpanel = self . createControlPanel ( ) #NEWLINE# plotpanel = self . panel = self . createPlotPanel ( ) #NEWLINE# plotpanel . yformatter = self . _formaty #NEWLINE# ( tx , ty ) = self . wids [ 'ptable' ] . GetBestSize ( ) #NEWLINE# ( cx , cy ) = ctrlpanel . GetBestSize ( ) #NEWLINE# ( px , py ) = plotpanel . GetBestSize ( ) #NEWLINE# self . SetSize ( ( ( max ( plotpanel , tx ) + px ) , ( 25 + max ( cy , py ) ) ) ) #NEWLINE# style = ( ( wx . ALIGN_LEFT | wx . EXPAND ) | wx . ALL ) #NEWLINE# sizer = wx . BoxSizer ( wx . HORIZONTAL ) #NEWLINE# sizer . Add ( ctrlpanel , 0 , style , 3 ) #NEWLINE# sizer . Add ( plotpanel , 1 , style , 2 ) #NEWLINE# self . SetMinSize ( ( 450 , 150 ) ) #NEWLINE# pack ( self , sizer ) #NEWLINE# wx . CallAfter ( self . init_larch ) #NEWLINE# self . set_roilist ( mca = None )