#NEWLINE# def reload_sizer( self , controls , extra = 0 ) : #NEWLINE# #INDENT# ' Reloads the layout from the specified list of ( button, proxy )\n            pairs.\n        ' #NEWLINE# sizer = self . control . GetSizer ( ) #NEWLINE# for i in xrange ( ( ( 2 * len ( controls ) ) + extra ) ) : #NEWLINE# #INDENT# sizer . Remove ( 0 ) #NEWLINE# #UNINDENT# index = 0 #NEWLINE# for ( control , pcontrol ) in controls : #NEWLINE# #INDENT# sizer . Add ( control , 0 , ( wx . LEFT | wx . RIGHT ) , 2 ) #NEWLINE# sizer . Add ( pcontrol , 1 , wx . EXPAND ) #NEWLINE# control . proxy . index = index #NEWLINE# index += 1 #NEWLINE# #UNINDENT# sizer . Layout ( ) #NEWLINE# self . control . SetVirtualSize ( sizer . GetMinSize ( ) )