Module ImportFrom alias alias alias Import alias Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Str Assign NameStore Str Import alias ImportFrom alias ImportFrom alias Import alias ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad Str NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign AttributeStore NameLoad attr UnaryOpNot AttributeLoad NameLoad attr Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Str FunctionDef arguments args defaults body Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A __future__ division print_function unicode_literals N/A sys N/A os N/A N/A N/A N/A sys path insert 0 N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ .. N/A testinfo dt 0.1, q N/A tags window event, enable_handlers, Scene, subscene N/A cocos cocos.director director cocos.sprite Sprite N/A pyglet PrintKey N/A N/A N/A cocos layer Layer N/A N/A is_event_handler True on_key_press N/A N/A self key modifiers N/A N/A N/A N/A print Key Pressed: key modifiers N/A N/A SwitchLayer N/A N/A N/A cocos layer Layer N/A __init__ N/A N/A self subscene N/A N/A N/A N/A N/A N/A super SwitchLayer self __init__ N/A N/A self subscene subscene N/A N/A self dispatch False N/A N/A is_event_handler True on_key_press N/A N/A self key modifiers N/A N/A N/A N/A key N/A N/A N/A pyglet window key SPACE N/A N/A N/A self dispatch N/A N/A self dispatch N/A N/A print 
DISPATCH EVENTS: N/A self dispatch N/A N/A N/A N/A self subscene enable_handlers N/A self dispatch N/A N/A N/A description 
A Scene node can block propagation of window events to her subtree.
Scene.enable_handlers() is used to enable / disable passing events.
The active scene is set by director to propagate window events.

'space' will will togle the state propgate / non propagate and report
on console ther actual propagation status.

When any other key is pressed:
    with dispatch events == True a line will be printed reporting the keypress
    with dispatch events == False nothing will be printed    
 main N/A N/A N/A N/A N/A N/A print description N/A N/A N/A director init N/A bg_layer N/A N/A N/A cocos layer ColorLayer 255 0 0 255 N/A sub N/A N/A N/A cocos scene Scene bg_layer N/A PrintKey N/A test_layer N/A SwitchLayer sub N/A main_scene N/A N/A N/A cocos scene Scene sub test_layer N/A N/A N/A director run main_scene N/A N/A N/A __name__ __main__ N/A N/A N/A main