Class cocos.text.Label

         object --+        
                  |        
cocosnode.CocosNode --+    
                      |    
            TextElement --+
                          |
                         Label
CocosNode Label element. It is a wrapper of pyglet.text.Label with the benefits of being of a CocosNode

Methods

  __init__(self, text='', position=(0,0), **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
(Inherited from cocos.text.TextElement)
  create_element(self) (Inherited from cocos.text.TextElement)
  draw(self)
This is the function you will have to override if you want your subclassed to draw something on screen.
(Inherited from cocos.text.TextElement)
Inherited from cocosnode.CocosNode: __contains__, add, are_actions_running, do, get, get_ancestor, get_children, on_enter, on_exit, pause, pause_scheduler, remove, remove_action, resume, resume_scheduler, schedule, schedule_interval, stop, transform, unschedule, visit, walk Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__

Instance Variables

Inherited from cocosnode.CocosNode: actions, camera, children, children_anchor_x, children_anchor_y, children_names, grid, is_running, rotation, scale, scheduled_calls, scheduled_interval_calls, skip_frame, to_remove, transform_anchor_x, transform_anchor_y, visible, x, y

Class Variables

  klass = pyglet.text.Label
  opacity = property(_get_opacity, _set_opacity) (Inherited from cocos.text.TextElement)
Inherited from cocosnode.CocosNode: anchor, anchor_x, anchor_y, children_anchor, parent, position, transform_anchor