<s> """<STR_LIT>""" <EOL> from flexx import react <EOL> from flexx import app <EOL> class Clock ( app . Model ) : <EOL> @ react . connect ( '<STR_LIT:time>' ) <EOL> def show_time ( t ) : <EOL> print ( t ) <EOL> class JS : <EOL> def _init ( this ) : <EOL> that = this <EOL> def _set_time ( ) : <EOL> that . time . _set ( time . perf_counter ( ) ) <EOL> window . setInterval ( _set_time , <NUM_LIT:200> ) <EOL> @ react . source <EOL> def time ( t ) : <EOL> return float ( t ) <EOL> clock = app . launch ( Clock , '<STR_LIT>' ) <EOL> app . run ( ) </s>
