BACKGROUND_LAYER = 0
FOREGROUND_LAYER = 1
CURSOR_LAYER = 2
-PLAYING_MODES = {'EASY':0
- ,'NORMAL':1
- ,'ADVANCED':2
- ,'EXPERT':3}
+PLAYING_MODES = (('EASY' , u'Facile'),
+ ('NORMAL' , u'Normal'),
+ ('ADVANCED', u'Avancé'),
+ ('EXPERT' , u'Expert'))
+
+
+
+PLAYING_MODES_DICT = dict([(v[0], i) for i, v in enumerate(PLAYING_MODES)])
def hls_to_rgba_8bits(h, l, s, a=1) :
#convert to rgb ranging from 0 to 255