Commit 93a73a7b authored by Bruno Coudoin's avatar Bruno Coudoin

louis braille activity: improved graphism.

parent 412acaf5
......@@ -30,9 +30,9 @@ from BrailleChar import *
from gcompris import gcompris_gettext as _
COLOR_ON = 0X00FFFFL
COLOR_OFF= 0X00000000L
CIRCLE_FILL = "red"
COLOR_ON = 0XFFFFFFFFL
COLOR_OFF= 0X000000FFL
CIRCLE_FILL = "white"
CELL_WIDTH = 30
LOUIS_BRAILLE_NAME = ['L','O','U','I','S','B','R','A','I','L','L','E']
......@@ -64,9 +64,8 @@ class Gcompris_louis_braille:
gcompris.bar_set (0)
# Set a background image
gcompris.set_default_background(self.gcomprisBoard.canvas.get_root_item())
gcompris.set_background(self.gcomprisBoard.canvas.get_root_item(),
"louis_braille/back.png")
"louis_braille/background.svgz")
#Initialize variables
self.won = 0
......@@ -153,6 +152,18 @@ class Gcompris_louis_braille:
else :
gcompris.bar_location(gcompris.BOARD_WIDTH - 140, 350, 0.8)
goocanvas.Rect( parent = self.rootitem,
x = 50,
y = 20,
width = 700,
height = 95,
radius_x = 10,
radius_y = 10,
stroke_color_rgba = 0x666666FFL,
fill_color_rgba = 0x33333333L,
line_width = 2.0)
#Previous Button
ok = goocanvas.Svg(parent = self.rootitem,
svg_handle = gcompris.skin.svg_get(),
......@@ -311,4 +322,4 @@ class Gcompris_louis_braille:
self.start()
def set_level(self, level):
print("louis_braille set level. %i" % level)
\ No newline at end of file
print("louis_braille set level. %i" % level)
[1]
_year = 1809
_story = Born January 4th at Coupvary near Paris in France.
image = louis_braille/louis.jpg
image = louis_braille/louis.png
[2]
_year = 1812
......@@ -21,7 +21,7 @@ image = louis_braille/rnib.jpg
[5]
_year = 1820
_story = He began to impress his classmates and began to play piano and the organ.
image = louis_braille/piano.jpg
image = louis_braille/piano.svg
[6]
_year = 1821
......
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