<s> """<STR_LIT>""" <EOL> from muntjac . ui . abstract_select import AbstractSelect <EOL> from muntjac . data . container import IContainer <EOL> class NativeSelect ( AbstractSelect ) : <EOL> """<STR_LIT>""" <EOL> CLIENT_WIDGET = None <EOL> def __init__ ( self , * args ) : <EOL> self . _columns = <NUM_LIT:0> <EOL> args = args <EOL> nargs = len ( args ) <EOL> if nargs == <NUM_LIT:0> : <EOL> super ( NativeSelect , self ) . __init__ ( ) <EOL> elif nargs == <NUM_LIT:1> : <EOL> caption , = args <EOL> super ( NativeSelect , self ) . __init__ ( caption ) <EOL> elif nargs == <NUM_LIT:2> : <EOL> if isinstance ( args [ <NUM_LIT:1> ] , IContainer ) : <EOL> caption , dataSource = args <EOL> super ( NativeSelect , self ) . __init__ ( caption , dataSource ) <EOL> else : <EOL> caption , options = args <EOL> super ( NativeSelect , self ) . __init__ ( caption , options ) <EOL> else : <EOL> raise ValueError , '<STR_LIT>' <EOL> def setColumns ( self , columns ) : <EOL> """<STR_LIT>""" <EOL> if columns < <NUM_LIT:0> : <EOL> columns = <NUM_LIT:0> <EOL> if self . _columns != columns : <EOL> self . _columns = columns <EOL> self . requestRepaint ( ) <EOL> def getColumns ( self ) : <EOL> return self . _columns <EOL> def paintContent ( self , target ) : <EOL> target . addAttribute ( '<STR_LIT:type>' , '<STR_LIT>' ) <EOL> if self . _columns != <NUM_LIT:0> : <EOL> target . addAttribute ( '<STR_LIT>' , self . _columns ) <EOL> super ( NativeSelect , self ) . paintContent ( target ) <EOL> def setMultiSelect ( self , multiSelect ) : <EOL> if multiSelect == True : <EOL> raise NotImplementedError , '<STR_LIT>' <EOL> def setNewItemsAllowed ( self , allowNewOptions ) : <EOL> if allowNewOptions == True : <EOL> raise NotImplementedError , '<STR_LIT>' </s>
