1 import Surface
from pygame
3 class Drawable(Surface
):
6 """ Screen object that this drawable belongs to. """
9 """ Handles Surface inheritance. """
12 """ A virtual method that draws this drawable onto itself. (Surface) """
15 class MenuDrawable(Drawable
):
18 """ Sub MenuDrawable's that belong to this one. Mutually exclusive with text. Drawn with reference to offset x,y. Think cellpadding."""
21 """ A string to be drawn inside this MenuDrawable. Mutually exclusive with menu. Drawn at offset x,y. Think cellpadding."""
24 """ x-Location of text or first sub-menu to be drawn to screen. """
27 """ y-Location of text or first sub-menu to be drawn to screen. """
30 """ Whether or not this MenuDrawable has a border or not."""
33 """ Handles Drawable inheritance. """
37 """ Draws a menu onto this drawable's surface. """