ch08
> exercises
gui.py
gui.py
The above image, from the original Super Mario Bros., represents a single frame of a running GUI program.
Note that for any object in a GUI that:
must have a class associated with it.
Based on all elements on screen, write a python module that contains 3 classes with at least 3 attributes each. The attributes should be data you think the class requires. See below for example:
class Player:
def __init__(self, pnum=1):
"""
Initialize the player object
args: pnum [int] the player's id number
"""
self.player_num = pnum
self.lives = 3 # players always start with 3 lives
self.is_large = False # player always starts small