<s> """<STR_LIT>""" <EOL> from flexx import react <EOL> class Temperature ( react . HasSignals ) : <EOL> @ react . input <EOL> def C ( self , v = <NUM_LIT:0> ) : <EOL> self . F ( v * <NUM_LIT> + <NUM_LIT:32> ) <EOL> return v <EOL> @ react . input <EOL> def F ( self , v ) : <EOL> self . C ( ( v - <NUM_LIT:32> ) / <NUM_LIT> ) <EOL> return v <EOL> @ react . connect ( '<STR_LIT:C>' ) <EOL> def show_c ( self , c ) : <EOL> print ( '<STR_LIT>' % c ) <EOL> @ react . connect ( '<STR_LIT:F>' ) <EOL> def show_f ( self , f ) : <EOL> print ( '<STR_LIT>' % f ) <EOL> print ( '<STR_LIT>' ) <EOL> t = Temperature ( ) <EOL> print ( '<STR_LIT>' ) <EOL> t . C ( <NUM_LIT:0> ) <EOL> print ( '<STR_LIT>' ) <EOL> t . F ( <NUM_LIT> ) </s>
