[gcompris] pythontemplate, minor documentation add on.
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris] pythontemplate, minor documentation add on.
- Date: Tue, 1 Jan 2013 22:24:37 +0000 (UTC)
commit 2426a20e6c71b332eb53a56910c5ed850d622626
Author: Bruno Coudoin <bruno coudoin free fr>
Date: Tue Jan 1 23:23:55 2013 +0100
pythontemplate, minor documentation add on.
src/pythontemplate-activity/pythontemplate.py | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/pythontemplate-activity/pythontemplate.py b/src/pythontemplate-activity/pythontemplate.py
index b4ce983..e87aaa4 100644
--- a/src/pythontemplate-activity/pythontemplate.py
+++ b/src/pythontemplate-activity/pythontemplate.py
@@ -26,6 +26,13 @@ import pango
from gcompris import gcompris_gettext as _
+#
+# The name of the class is important. It must start with the prefix
+# 'Gcompris_' and the last part 'pythontemplate' here is the name of
+# the activity and of the file in which you put this code. The name of
+# the activity must be used in your menu.xml file to reference this
+# class like this: type="python:pythontemplate"
+#
class Gcompris_pythontemplate:
"""Empty gcompris Python class"""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]