<s> """<STR_LIT>""" <EOL> from flexx import event <EOL> class Basic ( event . HasEvents ) : <EOL> def on_foo ( self , * events ) : <EOL> print ( '<STR_LIT>' % len ( events ) ) <EOL> def on_bar ( self , * events ) : <EOL> print ( '<STR_LIT>' % len ( events ) ) <EOL> b = Basic ( ) <EOL> b . emit ( '<STR_LIT:foo>' , { } ) <EOL> b . emit ( '<STR_LIT:foo>' , { } ) <EOL> b . emit ( '<STR_LIT:bar>' , { } ) <EOL> b . emit ( '<STR_LIT>' , { } ) <EOL> event . loop . iter ( ) </s>
