Ejemplo n.º 1
0
 def make_butts(self, dims, screen):
     button_list = tuple()
     live_butts = list()
     '''make NEW GAME dynamic button'''
     newGame = Button(
                 screen,
                 [200, 50],
                 [dims[0]/2-100, dims[1]-(150*dims[1]/875)],
                 ["new game", 20],
                 [(200, 200, 255), (175, 175, 230), (0, 0, 0)]
                 )
     live_butts.append(newGame)
     button_list += newGame.staticButton()
     '''make HIGH SCORE static button'''
     highScore = Button(
                 screen,
                 [100, 50],
                 [dims[0]/2-50, (50*dims[1]/875)],
                 ["high score: " + str(self.highScore), 20],
                 [(255, 255, 255), (255, 255, 255), (0, 0, 0)]
                 )
     button_list += highScore.staticButton()
     return button_list, live_butts