Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/boards
diff options
context:
space:
mode:
authorBruno Coudoin <bcoudoin@src.gnome.org>2009-02-01 21:01:37 (GMT)
committer Bruno Coudoin <bcoudoin@src.gnome.org>2009-02-01 21:01:37 (GMT)
commit1062aef3ec80758b7e3eb3fc1cbcf3e9ca222cc4 (patch)
tree9a84a46105c762ba026ba5d529f5560d47ff7052 /src/boards
parent8b71ff708993ba6e2857048e78f2120de1334bcc (diff)
Recoded the fix 3706 to not use a coding style not supported
by python 2.4 svn path=/trunk/; revision=3718
Diffstat (limited to 'src/boards')
-rw-r--r--src/boards/python/bargame.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/boards/python/bargame.py b/src/boards/python/bargame.py
index 27fafa2..785c9af 100644
--- a/src/boards/python/bargame.py
+++ b/src/boards/python/bargame.py
@@ -517,15 +517,15 @@ class Gcompris_bargame:
self.prof_item.connect("event",self.event_play)
# This item is clickeable and it must be seen
self.prof_item.connect("event", gcompris.utils.item_event_focus)
- self.prof_item.connect("event",
- lambda tux, event: self.set_prof(self.prof_image) \
- if event.type == gtk.gdk.LEAVE_NOTIFY else None )
def set_prof(self, prof_image):
self.prof_item.set(pixbuf = gcompris.utils.load_pixmap(prof_image))
self.prof_image = prof_image
def event_play(self, item, event):
+ if event.type == gtk.gdk.LEAVE_NOTIFY:
+ self.set_prof(self.prof_image)
+
if ((event.type != gtk.gdk.BUTTON_PRESS) or
(event.button != 1)):
return False