Label

widgets. Label

Class to display the textual component of an option next to its corresponding clock.

Constructor

new Label(face_canvas, x_pos, y_pos, height, text)

Source:
Parameters:
Name Type Description
face_canvas KeyboardCanvas

The KeyboardCanvas instance used to draw the clock faces.

x_pos number

The starting x position in pixels of the label, calculated in the ClockGrid class.

y_pos number

The starting y position in pixels of the label, calculated in the ClockGrid class.

height number

The height in pixels of the label, calculated in the ClockGrid class.

text string

the textual component of the label, i.e. "a", "Undo"

Methods

draw_text()

Description:
  • Re-draws the text for the label.

Source: