cocos.layer.python_interpreter module¶
-
class
PythonInterpreterLayer¶ Bases:
cocos.layer.util_layers.ColorLayerRuns an interactive Python interpreter as a child Layer of the current Scene.
-
draw()¶
-
on_enter()¶
-
on_exit()¶
-
on_key_press(symbol, modifiers)¶
-
on_resize(x, y)¶
-
on_text(symbol)¶
-
on_text_motion(motion)¶
-
cfg= {u'code.font_name': u'Arial', u'code.color': (255, 255, 255, 255), u'code.font_size': 12, u'caret.color': (255, 255, 255)}¶
-
doing_more= False¶
-
is_event_handler= True¶ enable pyglet’s events
-
name= u'py'¶
-
prompt= u'>>> '¶ python prompt
-
prompt_more= u'... '¶ python ‘more’ prompt
-