def nextRound(self): g.screen.fill((0, 0, 0)) self.next_button.set_sensitive(False) self.journal = True # set to False if we come in via main() self.num = utils.get_num(self.level) self.lives, self.offset = utils.get_lives(self.level) self.status = None self.input = [] self.attempts_list = [] self.compare_list = []
def __init__(self, level=3, parent=None): self.parent = parent self.level = level self.journal = True # set to False if we come in via main() self.num = utils.get_num(self.level) self.lives, self.offset = utils.get_lives(self.level) self.status = None self.input = [] self.compare_list = [] self.attempts_list = [] self.score = 0 self.parent.update_score(self.score)
def change_level(self, level): g.screen.fill((0, 0, 0)) self.level = level self.journal = True # set to False if we come in via main() self.num = utils.get_num(self.level) self.lives, self.offset = utils.get_lives(self.level) self.status = None self.input = [] self.attempts_list = [] self.compare_list = [] self.score = 0 self.parent.update_score(self.score) self.next_button.set_sensitive(False)