<s> from core . modules . basic_modules import String <EOL> from enum_widget import build_enum_widget <EOL> class MyEnum ( String ) : <EOL> _input_ports = [ ( '<STR_LIT:value>' , '<STR_LIT>' ) ] <EOL> _widget_class = build_enum_widget ( '<STR_LIT>' , <EOL> [ '<STR_LIT:abc>' , '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> @ staticmethod <EOL> def get_widget_class ( ) : <EOL> return MyEnum . _widget_class </s>
