CometZ  0.2
 All Classes Namespaces Functions
Public Member Functions | Public Attributes
menu.Menu Class Reference

List of all members.

Public Member Functions

def __init__
def up
def down
def press
def draw

Public Attributes

 items
 backg
 state
 fontType
 fontSizeNSelec
 fontSizeSelec
 spread
 fontColor

Detailed Description

    Class for generating a menu based on
    a set of items and a background image
    Still needs some external code to
    handle the state (whenever return is pressed for example)
    
    It takes as input a list of strings (representing the menu items)
    and a background image. The first item in the list is the bottom one
    
    If one needs to change the text size or color, one can make use of the
    class attributes

Member Function Documentation

def menu.Menu.down (   self)
    moving down on the menu
def menu.Menu.draw (   self,
  screen 
)
    drawing the menu
def menu.Menu.press (   self)
    whenever the selected item is pressed
def menu.Menu.up (   self)
    moving up on the menu

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions