Public Member Functions | |
| def | __init__ |
| def | up |
| def | down |
| def | press |
| def | draw |
Public Attributes | |
| items | |
| backg | |
| state | |
| fontType | |
| fontSizeNSelec | |
| fontSizeSelec | |
| spread | |
| fontColor | |
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
| 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
1.7.6.1