Commit a6afa58a authored by Srishti Sethi's avatar Srishti Sethi

BrailleChar

parent 685ae71c
......@@ -37,9 +37,9 @@ BRAILLE_LETTERS = {
"N": [1, 3, 4, 5], "O": [1, 3, 5], "P": [1, 2, 3, 4], "Q": [1, 2, 3, 4, 5],
"R": [1, 2, 3, 5], "S": [2, 3, 4], "T": [2, 3, 4, 5], "U": [1, 3, 6],
"V": [1, 2, 3, 6], "W": [2, 4, 5, 6], "X": [1, 3, 4, 6], "Y": [1, 3, 4, 5, 6],
"Z": [1, 3, 5, 6], "+" : [3,4,6], "_": [3,6], "." : [4],"X" : [1,6],"/" : [4,6],
"-" : [3,4],1: [2],2 :[2,3], 3 : [2,5], 4: [2,5,6],5 : [2,6],
6 : [2,3,5],7 : [2,3,5,6],8 : [2,3,6], 9 : [3,5],0 :[3,5,6]
"Z": [1, 3, 5, 6], "+" : [3,4,6], "_": [3,6], "*" : [1,6],"/" : [3,4],
"#" : [3,4,5,6],1: [1],2 :[1,2], 3 : [1,4], 4: [1,4,5],5 : [1,5],
6 : [1,2,4],7 : [1,2,4,5],8 : [1,2,5], 9 : [2,4],0 :[3,5,6]
}
class BrailleChar:
......
......@@ -126,8 +126,10 @@ class Gcompris_braille_alphabets:
tile = BrailleChar(self.rootitem, i*(cell_width+30)+60,
250, 50, letter ,on ,off ,circle_fill,
circle_stroke, True ,False,True, None)
BrailleChar(self.rootitem,60, 350, 50, "#",on ,off, circle_fill,
circle_stroke, True, False,True, None)
for letter in range(0,10):
tile = BrailleChar(self.rootitem,letter *(cell_width+30)+60,
tile = BrailleChar(self.rootitem,(letter+1) *(cell_width+25)+60,
350, 50, letter ,on ,off ,circle_fill,
circle_stroke, True ,False ,True, None)
#Move back item
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment