Public Member Functions | Public Attributes

unlock.view.fastpad_view.FastPadButton Class Reference

Inheritance diagram for unlock.view.fastpad_view.FastPadButton:
unlock.view.view.UnlockView

List of all members.

Public Member Functions

def __init__
def render

Public Attributes

 canvas
 rect
 texts
 rects
 labels
 actions
 up
 down
 left
 right

Detailed Description

Class for a FastPad button.

Member Function Documentation

def unlock.view.fastpad_view.FastPadButton.__init__ (   self,
  rect,
  labels,
  actions,
  canvas 
)
Initialize the internal data structures and
graphical button layout.

Input:
    screen -- (Unlock Screen) Drawing area
    rect -- (tuple(int, int, int, int)) Rectangle
with x, y, width, and height
    labels -- (list(str)) Strings to display on
the button; first is the biggest
    actions -- (list(funcs)) Actions to perform
when labels are selected; a function will
be passed the label as its argument

Raises an Exception if anything goes wrong.
def unlock.view.fastpad_view.FastPadButton.render (   self  ) 

Member Data Documentation


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