예제 #1
0
 def __init__(self, menu, width, height, MenuEntryWidget=MenuEntryWidget):
     """ Initialize the widget """
     MenuWidget.__init__(self,
                         menu,
                         width,
                         height,
                         MenuEntryWidget=MenuEntryWidget)
     self.background = MenuBackgroundWidget(width, height)
예제 #2
0
    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()