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 ImportFrom alias Import alias ImportFrom alias Assign NameStore Num Assign NameStore Num Assert CompareLt Call NameLoad BinOpSub BinOpDiv NameLoad NameLoad BinOpDiv Num Num Num ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad BinOpFloorDiv NameLoad Num Assign NameStore Call NameLoad BinOpFloorDiv NameLoad Num Assign AttributeStore NameLoad attr ListLoad TupleLoad Num Num Num TupleLoad Num NameLoad Num TupleLoad NameLoad NameLoad Num TupleLoad NameLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad Expr Call NameLoad Expr Call NameLoad decorator_list decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad TupleLoad Num Num Num Num keyword Num Assign NameStore Num Assign NameStore Call NameLoad BinOpSub NameLoad BinOpMult Num NameLoad BinOpSub NameLoad BinOpMult Num NameLoad TupleLoad Num Num Num Num Assign AttributeStore NameLoad attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore Call NameLoad BinOpAdd NameLoad BinOpMult Num NameLoad BinOpAdd NameLoad BinOpMult Num NameLoad TupleLoad Num Num Num Num Assign AttributeStore NameLoad attr TupleLoad UnaryOpUSub NameLoad UnaryOpUSub NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Num decorator_list decorator_list Assign NameStore Str FunctionDef arguments args defaults body Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call 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 s, q N/A tags resize, resizable, aspect ratio, set_caption pyglet.gl * N/A cocos cocos.director director N/A width 768 N/A height 480 N/A N/A N/A abs N/A N/A width height N/A 16 10.0 0.0001 ProbeRect N/A N/A N/A cocos cocosnode CocosNode N/A __init__ N/A N/A self width height color4 N/A N/A N/A N/A N/A N/A super ProbeRect self __init__ N/A N/A self color4 color4 N/A w2 N/A int N/A width 2 N/A h2 N/A int N/A height 2 N/A N/A self vertexes N/A N/A 0 0 0 N/A 0 height 0 N/A width height 0 N/A width 0 0 N/A draw N/A N/A self N/A N/A N/A N/A glPushMatrix N/A N/A N/A self transform N/A N/A glBegin GL_QUADS N/A N/A glColor4ub N/A self color4 N/A v N/A self vertexes N/A N/A N/A glVertex3i v N/A N/A glEnd N/A N/A glPopMatrix N/A N/A TestLayer N/A N/A N/A cocos layer Layer N/A __init__ N/A N/A self N/A N/A N/A N/A N/A N/A super TestLayer self __init__ N/A N/A N/A self add N/A ProbeRect width height N/A 0 0 255 255 z 1 N/A border_size 10 N/A inner N/A ProbeRect N/A width N/A 2 border_size N/A height N/A 2 border_size N/A 255 0 0 255 N/A N/A inner position N/A border_size border_size N/A N/A N/A self add inner z 2 N/A outer N/A ProbeRect N/A width N/A 2 border_size N/A height N/A 2 border_size N/A 255 255 0 255 N/A N/A outer position N/A N/A border_size N/A border_size N/A N/A N/A self add outer z 0 N/A N/A N/A description 
Starts a 16/10 aspect ratio window.
CTRL-F toggles fullscreen

The scene draw three boxes, centered at the window center.
  blue box: the exact same size as the window
  yellow box: a little bigger than blue box
  red box: a little smaller than blue box
Draw order is yellow, blue, red
You must see no yellow, and a red rectangle with equal sized blue borders
 main N/A N/A N/A N/A N/A N/A print description N/A N/A N/A director init width width height height resizable False N/A N/A N/A N/A director window set_caption aspect ratio and fullscreen - see console for usage N/A scene N/A N/A N/A cocos scene Scene N/A N/A N/A scene add N/A TestLayer N/A N/A N/A director run scene N/A N/A N/A __name__ __main__ N/A N/A N/A main