 from atom . api import Typed , ForwardTyped , Enum , Range , observe <EOL> from enaml . core . declarative import d_ <EOL> from . toolkit_object import ToolkitObject , ProxyToolkitObject <EOL> from . widget import Widget <EOL> class ProxyStatusItem ( ProxyToolkitObject ) : <EOL> """<STR_LIT>""" <EOL> declaration = ForwardTyped ( lambda : StatusItem ) <EOL> def set_mode ( eslf , mode ) : <EOL> raise NotImplementedError <EOL> def set_stretch ( self , stretch ) : <EOL> raise NotImplementedError <EOL> class StatusItem ( ToolkitObject ) : <EOL> """<STR_LIT>""" <EOL> mode = d_ ( Enum ( '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> stretch = d_ ( Range ( low = <NUM_LIT:0> ) ) 
 proxy = Typed ( ProxyStatusItem ) 
 from atom . api import Typed , ForwardTyped , Enum , Range , observe <EOL> from enaml . core . declarative import d_ <EOL> from . toolkit_object import ToolkitObject , ProxyToolkitObject <EOL> from . widget import Widget <EOL> class ProxyStatusItem ( ProxyToolkitObject ) : <EOL> """<STR_LIT>""" <EOL> declaration = ForwardTyped ( lambda : StatusItem ) <EOL> def set_mode ( eslf , mode ) : <EOL> raise NotImplementedError <EOL> def set_stretch ( self , stretch ) : <EOL> raise NotImplementedError <EOL> class StatusItem ( ToolkitObject ) : <EOL> """<STR_LIT>""" <EOL> mode = d_ ( Enum ( '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> stretch = d_ ( Range ( low = <NUM_LIT:0> ) ) <EOL> proxy = Typed ( ProxyStatusItem ) <EOL> def status_widget ( self ) : <EOL> """<STR_LIT>""" <EOL> for child in reversed ( self . children ) : <EOL> if isinstance ( child , Widget ) : <EOL> return child <EOL> @ observe ( ( '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> def _update_proxy ( self , change ) : <EOL> """<STR_LIT>""" <EOL> super ( StatusItem , self ) . _update_proxy ( change ) </s>
