<s> """<STR_LIT>""" <EOL> from ... import react <EOL> from ... pyscript import window <EOL> from . import Widget , Layout <EOL> class StackedPanel ( Layout ) : <EOL> """<STR_LIT>""" <EOL> @ react . input <EOL> def current ( v = None ) : <EOL> """<STR_LIT>""" <EOL> if not isinstance ( v , Widget ) : <EOL> raise ValueError ( '<STR_LIT>' ) <EOL> return v <EOL> class JS : <EOL> def _create_node ( self ) : <EOL> self . p = window . phosphor . stackedpanel . StackedPanel ( ) <EOL> @ react . connect ( '<STR_LIT>' ) <EOL> def __set_current_widget ( self , widget ) : <EOL> for i in range ( self . p . childCount ( ) ) : <EOL> self . p . childAt ( i ) . hide ( ) <EOL> widget . p . show ( ) </s>
