import pygame
from colorsys import hls_to_rgb
from gradients import gradients
+from cursors import WarpingCursor
from math import floor
import types
# TODO : positionner cette constance en fonction de la résolution d'affichage
self.distinctNotes = distinctNotes
self.keyboardLength = 0
self.keyboardRects = []
+ self.cursor = None
self._initRects()
self._initColumns()
self._running = False
+ self.draw(pygame.display.get_surface())
+ self._initCursor()
print hue
c = Column(hue, rect)
self.add(c)
-
+
+ def _initCursor(self) :
+ self.cursor = WarpingCursor()
+ #self.add(self.cursor)
+
def highlightColumn(self, index) :
for i, sprite in enumerate(self.sprites()) :
@event_handler(pygame.MOUSEMOTION)
def handleMouseMotion(self, event) :
+ pass