[gcompris/gcomprixogoo] Modified files to make it easy to create the script createit.sh that will create an empty activity.
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris/gcomprixogoo] Modified files to make it easy to create the script createit.sh that will create an empty activity.
- Date: Sun, 4 Jul 2010 22:27:03 +0000 (UTC)
commit dbb47147ab88a6add0fb85478234132af8e6c4c3
Author: Bruno Coudoin <bruno coudoin free fr>
Date: Sun Jul 4 23:20:35 2010 +0200
Modified files to make it easy to create the script createit.sh
that will create an empty activity.
src/Makefile.am | 3 ++-
src/pythontemplate-activity/pythontemplate.py | 16 ++++++++--------
2 files changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index f29da79..0637c6b 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,6 +1,7 @@
## Process this file with automake to produce Makefile.in
-SUBDIRS = goocanvas gcompris boards \
+SUBDIRS = \
+ goocanvas gcompris boards \
advanced_colors-activity \
algebra_by-activity \
algebra_guesscount-activity \
diff --git a/src/pythontemplate-activity/pythontemplate.py b/src/pythontemplate-activity/pythontemplate.py
index d10eec7..066f395 100644
--- a/src/pythontemplate-activity/pythontemplate.py
+++ b/src/pythontemplate-activity/pythontemplate.py
@@ -28,7 +28,7 @@ class Gcompris_pythontemplate:
def __init__(self, gcomprisBoard):
- print "template init"
+ print "pythontemplate init"
# Save the gcomprisBoard, it defines everything we need
# to know from the core
@@ -38,7 +38,7 @@ class Gcompris_pythontemplate:
gcomprisBoard.disable_im_context = True
def start(self):
- print "template start"
+ print "pythontemplate start"
# Set the buttons we want in the bar
gcompris.bar_set(gcompris.BAR_LEVEL)
@@ -48,19 +48,19 @@ class Gcompris_pythontemplate:
def end(self):
- print "template end"
+ print "pythontemplate end"
def ok(self):
- print("template ok.")
+ print("pythontemplate ok.")
def repeat(self):
- print("template repeat.")
+ print("pythontemplate repeat.")
def config(self):
- print("template config.")
+ print("pythontemplate config.")
def key_press(self, keyval, commit_str, preedit_str):
@@ -70,9 +70,9 @@ class Gcompris_pythontemplate:
print("Gcompris_pythontemplate key press keyval=%i %s" % (keyval, strn))
def pause(self, pause):
- print("template pause. %i" % pause)
+ print("pythontemplate pause. %i" % pause)
def set_level(self, level):
- print("template set level. %i" % level)
+ print("pythontemplate set level. %i" % level)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]