- self.__running = True
- #pygame.display.flip()
- #raw_input('allez ?')
-
- def run(self):
- while self.__running :
- pygame.display.flip()
- events = pygame.event.get()
- for event in events:
- self.input(event)
-
- def input(self, event) :
- if event.type == pygame.KEYDOWN:
- if event.key == pygame.K_q:
- self.__running = False
- uni = event.unicode
- if uni.isdigit() and int(uni) <=8 :
- self.highlightColumn(int(uni))
-
-
- # if event.key == pygame.K_i:
- # self.backToInstrumentChoice = True
- # self.done = True
- #
- # if event.key == pygame.K_w:
- # self.nextLevel = 0
- # self.done = True
- #
- # if event.key == pygame.K_e:
- # self.nextLevel = 1
- # self.done = True
- #
- # if event.key == pygame.K_r:
- # self.nextLevel = 2
- # self.done = True
- #
- # if event.key == pygame.K_t:
- # self.nextLevel = 3
- # self.done = True