Public Member Functions | |
| def | __init__ |
Public Attributes | |
| font | |
| size | |
| label | |
| logger | |
| 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.
Reimplemented from unlock.view.pyglet_text.PygletLabel.
Reimplemented from unlock.view.pyglet_text.PygletLabel.
1.7.1