<s> import wx <EOL> from robotide . preferences import widgets <EOL> class ImportPreferences ( widgets . PreferencesPanel ) : <EOL> location = ( '<STR_LIT>' ) <EOL> title = '<STR_LIT>' <EOL> def __init__ ( self , parent , settings ) : <EOL> super ( widgets . PreferencesPanel , self ) . __init__ ( parent ) <EOL> self . SetSizer ( wx . FlexGridSizer ( rows = <NUM_LIT:4> , cols = <NUM_LIT:2> , vgap = <NUM_LIT:10> , hgap = <NUM_LIT:5> ) ) <EOL> self . Sizer . AddGrowableCol ( <NUM_LIT:1> , proportion = <NUM_LIT:1> ) <EOL> self . _add_settings ( settings ) <EOL> def _add_settings ( self , settings ) : <EOL> list_settings = [ <EOL> ( '<STR_LIT>' , '<STR_LIT>' <EOL> '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' <EOL> '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> ] <EOL> for ( name , help ) in list_settings : <EOL> self . _create_list_setting_editor ( settings , name , help ) <EOL> def _create_list_setting_editor ( self , settings , name , help ) : <EOL> label , editor = widgets . comma_separated_value_editor ( <EOL> self , settings , name , name . capitalize ( ) , help ) <EOL> self . Sizer . Add ( label ) <EOL> self . Sizer . Add ( editor , flag = wx . EXPAND ) </s>
