Public Member Functions | Public Attributes

unlock.view.pyglet_text.PygletTextLabel Class Reference

Inheritance diagram for unlock.view.pyglet_text.PygletTextLabel:
unlock.view.pyglet_text.PygletLabel unlock.view.view.UnlockView unlock.view.pyglet_text.DynamicPositionPygletTextLabel unlock.view.pyglet_text.PygletDynamicTextLabel

List of all members.

Public Member Functions

def __init__

Public Attributes

 font
 size
 label
 logger

Member Function Documentation

def unlock.view.pyglet_text.PygletTextLabel.__init__ (   self,
  model,
  canvas,
  text,
  x,
  y,
  width = None,
  height = None,
  anchor_x = 'center',
  anchor_y = 'center',
  font = 'Helvetica',
  size = 48,
  color = (255,255,
  group = None 
)
Draws text at a specific point on the screen
:param text: Text to display
:param x: x-coordinate of center of text(Pixels from left)
:param y: y-coordinate of center of text(Pixels from bottom)
:param font: Font of text
:param size: Size of text
:param color: Color of text. Tuple of length four.

Member Data Documentation


The documentation for this class was generated from the following file: