def __init__(self, menu, width, height, MenuEntryWidget=MenuEntryWidget): """ Initialize the widget """ MenuWidget.__init__(self, menu, width, height, MenuEntryWidget=MenuEntryWidget) self.background = MenuBackgroundWidget(width, height)
def __init__(self, width, height, message, fullyDisplay=False): """ Builds the Message Box with the given message box """ SizedWidget.__init__(self, width, height) self.message = message self.charsShown = 0 self.font = pygame.font.SysFont("Times New Roman", 36) self.stringToDisplay = "" self.background = MenuBackgroundWidget(self.width, self.height) if fullyDisplay: self.showFully()