X-Git-Url: https://svn.cri.ensmp.fr/git/minwii.git/blobdiff_plain/afeb92b07428059fd3a1022aefa64a1aeba68152..e7854ed82aa375273bfbf772493739f875817061:/src/app/globals.py?ds=inline diff --git a/src/app/globals.py b/src/app/globals.py index ef51d78..2ce25eb 100755 --- a/src/app/globals.py +++ b/src/app/globals.py @@ -11,10 +11,15 @@ from math import floor BACKGROUND_LAYER = 0 FOREGROUND_LAYER = 1 CURSOR_LAYER = 2 -PLAYING_MODES = {'EASY':0 - ,'NORMAL':1 - ,'ADVANCED':2 - ,'EXPERT':3} +PLAYING_MODES = (('BEGINNER' , u'Débutant'), + ('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