Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgnacio Rodríguez <ignaciorodriguez@sugarlabs.org>2013-11-20 16:56:03 (GMT)
committer Ignacio Rodríguez <ignaciorodriguez@sugarlabs.org>2013-11-20 16:56:03 (GMT)
commit3a41e216f6edb989a1ef3289c5c71610195d7731 (patch)
tree76f9376a96be536f2f2e5d5c1dee4f169c8d297f
parenta109c7cf0fda10b401a63c3f0dffd0ecf833fe4f (diff)
Corrections
-rw-r--r--Accelerometer/LevelActivity.py1
-rw-r--r--Gtk2/activity.py6
-rw-r--r--Gtk3/activity.py6
-rwxr-xr-xSugarGame/HelloWorld.py1
-rwxr-xr-xSugarGame/game.py4
-rw-r--r--Touch/activity.py1
-rwxr-xr-xWeb/css/activity.css1
-rw-r--r--Web/index.html3
8 files changed, 15 insertions, 8 deletions
diff --git a/Accelerometer/LevelActivity.py b/Accelerometer/LevelActivity.py
index ca5a19d..473976b 100644
--- a/Accelerometer/LevelActivity.py
+++ b/Accelerometer/LevelActivity.py
@@ -24,6 +24,7 @@ from math import pi, sqrt
from gettext import gettext as _
from collections import deque
+# Change the following text to change the accelerometer path
ACCELEROMETER_DEVICE = '/sys/devices/platform/lis3lv02d/position'
#ACCELEROMETER_DEVICE = 'a.txt'
diff --git a/Gtk2/activity.py b/Gtk2/activity.py
index 6ab8e29..9e0a866 100644
--- a/Gtk2/activity.py
+++ b/Gtk2/activity.py
@@ -36,11 +36,9 @@ class HelloWorldActivity(activity.Activity):
"""Set up the HelloWorld activity."""
activity.Activity.__init__(self, handle)
- # we do not have collaboration features
- # make the share option insensitive
+ # Change the following number to change max participants
self.max_participants = 1
- # toolbar with the new toolbar redesign
toolbar_box = ToolbarBox()
activity_button = ActivityButton(self)
@@ -68,7 +66,7 @@ class HelloWorldActivity(activity.Activity):
self.set_toolbar_box(toolbar_box)
toolbar_box.show()
- # label with the text, make the string translatable
+ # Change the following text to change the message (Default: 'Hello World!'
label = gtk.Label(_("Hello World!"))
self.set_canvas(label)
label.show()
diff --git a/Gtk3/activity.py b/Gtk3/activity.py
index 2252983..34e79c6 100644
--- a/Gtk3/activity.py
+++ b/Gtk3/activity.py
@@ -36,11 +36,9 @@ class HelloWorldActivity(activity.Activity):
"""Set up the HelloWorld activity."""
activity.Activity.__init__(self, handle)
- # we do not have collaboration features
- # make the share option insensitive
+ # Change the following number to change max participants
self.max_participants = 1
- # toolbar with the new toolbar redesign
toolbar_box = ToolbarBox()
activity_button = ActivityButton(self)
@@ -72,7 +70,7 @@ class HelloWorldActivity(activity.Activity):
self.set_toolbar_box(toolbar_box)
toolbar_box.show()
- # label with the text, make the string translatable
+ # Change the following text to change the message (Default: 'Hello World!'
label = Gtk.Label(_("Hello World!"))
self.set_canvas(label)
label.show()
diff --git a/SugarGame/HelloWorld.py b/SugarGame/HelloWorld.py
index 7e42e72..5a51b40 100755
--- a/SugarGame/HelloWorld.py
+++ b/SugarGame/HelloWorld.py
@@ -17,6 +17,7 @@ class HelloWorld(activity.Activity):
def __init__(self, handle):
activity.Activity.__init__(self, handle)
+ # Change the following number to change max participants
self.max_participants = 1
self.build_toolbar()
self.actividad = game.MiJuego()
diff --git a/SugarGame/game.py b/SugarGame/game.py
index c117193..67aead4 100755
--- a/SugarGame/game.py
+++ b/SugarGame/game.py
@@ -5,6 +5,7 @@ from pygame.locals import *
import gtk, sys
+# Change number for change colors (RGB)
BLANCO = (255, 255, 255)
NEGRO = (0, 0, 0)
@@ -17,9 +18,11 @@ class MiJuego():
global x, y, fuente, texto
x = gtk.gdk.screen_width()
y = gtk.gdk.screen_height() - 55
+ # Change the following text to change the program name
pygame.display.set_caption('Hello world!')
fuente = pygame.font.SysFont(None, 48)
+ # Change "Hello World!" to change the main message
texto = fuente.render('Hello world!', True, BLANCO, NEGRO)
reloj = pygame.time.Clock()
@@ -30,6 +33,7 @@ class MiJuego():
gtk.main_iteration()
for event in pygame.event.get():
if event.type == pygame.QUIT:
+ # Change "Juego Finalizado" to change the exit message (log)
exit("Juego finalizado")
elif event.type == pygame.VIDEORESIZE:
pygame.display.set_mode(event.size, pygame.RESIZABLE)
diff --git a/Touch/activity.py b/Touch/activity.py
index 1245451..3769329 100644
--- a/Touch/activity.py
+++ b/Touch/activity.py
@@ -42,6 +42,7 @@ class TestMultiTouchActivity(activity.Activity):
def __init__(self, handle):
activity.Activity.__init__(self, handle)
+ # Change the following number to change max participants
self.max_participants = 1
toolbar_box = ToolbarBox()
diff --git a/Web/css/activity.css b/Web/css/activity.css
index 1f9959b..e27cdb7 100755
--- a/Web/css/activity.css
+++ b/Web/css/activity.css
@@ -3,6 +3,7 @@
-webkit-user-select: none;
}
+/* Change url(../activity/activity-helloworld.svg); for set your custom activity icon */
#main-toolbar #activity-button {
background-image: url(../activity/activity-helloworld.svg);
}
diff --git a/Web/index.html b/Web/index.html
index 29ecf7d..1a3bacc 100644
--- a/Web/index.html
+++ b/Web/index.html
@@ -3,6 +3,7 @@
<head>
<meta charset="utf-8" />
+ <!-- Change <title>Hello World</title> for set your custom activity name !-->
<title>Hello World</title>
<link rel="stylesheet" href="lib/sugar-web/graphics/css/sugar.css">
<link rel="stylesheet" href="css/activity.css">
@@ -12,10 +13,12 @@
<body>
<div id="main-toolbar" class="toolbar">
+ <!-- Change title="Welcome Activity" & title="Stop" for change name of button !-->
<button class="toolbutton" id="activity-button" title="Welcome Activity"></button>
<button class="toolbutton pull-right" id="stop-button" title="Stop"></button>
</div>
<div id="canvas">
+ <!-- Change "Hello World!" to change the main message -->
<p>Hello World!</p>
</div>