[gcompris/gcomprisbraille] louis braille activity: improved graphism.
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris/gcomprisbraille] louis braille activity: improved graphism.
- Date: Mon, 22 Aug 2011 22:15:44 +0000 (UTC)
commit 93a73a7b3c1a846fc41859d7f43fd89784f4a378
Author: Bruno Coudoin <bruno coudoin free fr>
Date: Mon Aug 22 23:15:15 2011 +0200
louis braille activity: improved graphism.
src/louis_braille-activity/louis_braille.py | 23 ++++++++++++++-----
.../resources/louis_braille/activity.desktop | 4 +-
.../resources/louis_braille/back.png | Bin 77278 -> 0 bytes
.../resources/louis_braille/louis.jpg | Bin 39078 -> 0 bytes
.../resources/louis_braille/louis.png | Bin 0 -> 107446 bytes
.../resources/louis_braille/piano.jpg | Bin 13351 -> 0 bytes
6 files changed, 19 insertions(+), 8 deletions(-)
---
diff --git a/src/louis_braille-activity/louis_braille.py b/src/louis_braille-activity/louis_braille.py
index 6c12888..3cd365f 100644
--- a/src/louis_braille-activity/louis_braille.py
+++ b/src/louis_braille-activity/louis_braille.py
@@ -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)
diff --git a/src/louis_braille-activity/resources/louis_braille/activity.desktop b/src/louis_braille-activity/resources/louis_braille/activity.desktop
index ee9925b..dd2c6b2 100755
--- a/src/louis_braille-activity/resources/louis_braille/activity.desktop
+++ b/src/louis_braille-activity/resources/louis_braille/activity.desktop
@@ -1,7 +1,7 @@
[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
diff --git a/src/louis_braille-activity/resources/louis_braille/louis.png b/src/louis_braille-activity/resources/louis_braille/louis.png
new file mode 100644
index 0000000..e62bffe
Binary files /dev/null and b/src/louis_braille-activity/resources/louis_braille/louis.png differ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]