Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Major <jmikem@bellsouth.net>2009-09-01 02:48:06 (GMT)
committer Mike Major <jmikem@bellsouth.net>2009-09-01 02:48:06 (GMT)
commit6a4b13bc89d5ba8b527b3f7366c6ca0ad54485ae (patch)
tree6f92bb83a6f22f77bb66c3a60cda1173402f75de
parentdca2c0e6e711ae1126a6f0e8047a74cf07de092d (diff)
added intro text on 3 pages; changed to rev 1 for posting on a.sl.o
-rw-r--r--activity/activity.info2
-rw-r--r--data.py2
-rw-r--r--hoparound.py2
-rw-r--r--view.py16
4 files changed, 16 insertions, 6 deletions
diff --git a/activity/activity.info b/activity/activity.info
index 6a5067a..ddfe52d 100644
--- a/activity/activity.info
+++ b/activity/activity.info
@@ -3,6 +3,6 @@ name = Hop-A-Round
bundle_id = org.laptop.HopaRound
class = hoparound.HopaRoundActivity
icon = hoparound-icon
-activity_version = 9
+activity_version = 1
host_version = 1
show_launcher = yes
diff --git a/data.py b/data.py
index b35b4ba..2d2322b 100644
--- a/data.py
+++ b/data.py
@@ -21,7 +21,7 @@ import random, math
class LevelData():
def __init__(self):
- self.question_max = 2 # number of questions in each section (slider, multiple choice & entry)
+ self.question_max = 3 # number of questions in each section (slider, multiple choice & entry)
self.thresh_slider = 0 # if question count matches this number, change to this section
self.thresh_mult = self.question_max # if question count matches this number, change to this section
self.thresh_entry = 2 * self.question_max # if question count matches this number, change to this section
diff --git a/hoparound.py b/hoparound.py
index b245939..d6d4b44 100644
--- a/hoparound.py
+++ b/hoparound.py
@@ -67,6 +67,6 @@ class HopaRoundActivity(activity.Activity):
self.ui.answer_correct(self.data)
else:
self.ui.answer_incorrect(self.data)
- gobject.timeout_add(2000, self.ui.clear, self.data)
+ gobject.timeout_add(2500, self.ui.clear, self.data)
self.setup(self.data, self.ui)
diff --git a/view.py b/view.py
index bf4340d..a557de8 100644
--- a/view.py
+++ b/view.py
@@ -26,6 +26,7 @@ class Views():
self.user_interaction = gtk.VBox()
self.activity = gtk.Notebook()
self.activity.set_show_tabs(False)
+ self.activity.set_size_request(800, 600)
self.user_interaction.pack_start(self.activity, False, False, 10)
# navigation
self.navigation = gtk.HButtonBox()
@@ -61,11 +62,20 @@ class Views():
self.introduction = gtk.Notebook()
self.introduction.set_show_tabs(False)
self.intro_area.pack_start(self.introduction, False, False, 10)
- self.intro_tab1 = gtk.Label("intro text")
+ self.intro_tab1 = gtk.Label()
+ self.intro_tab1.set_line_wrap(True)
+ self.intro_tab1.set_size_request(700, 300)
+ self.intro_tab1.set_markup("<big>When Hoppy brags to his friends, he likes to tell them how many leaves he can eat in one day.\n\n\nWhen he doesn't know the <b>exact</b> number, he <b>estimates</b>.\n\n\nThis is called <b>rounding</b>.</big>")
self.introduction.append_page(self.intro_tab1)
- self.intro_tab2 = gtk.Label("more intro text")
+ self.intro_tab2 = gtk.Label()
+ self.intro_tab2.set_line_wrap(True)
+ self.intro_tab2.set_size_request(700, 300)
+ self.intro_tab2.set_markup("<big><b>Hoppy says there are two rules for rounding numbers:</b>\n\n\n1. If the number you are rounding is followed \n\tby <b>5, 6, 7, 8 or 9</b> round the number <b>up</b>.\n\n\tExample: 38 rounded to the nearest ten is 40.\n\n\n2. If the number you are rounding is followed \n\tby <b>0, 1, 2, 3 or 4</b> round the number <b>down</b>.\n\n\tExample: 33 rounded to the nearest ten is 30.</big>")
self.introduction.append_page(self.intro_tab2)
- self.intro_tab3 = gtk.Label("and some more intro text")
+ self.intro_tab3 = gtk.Label()
+ self.intro_tab3.set_line_wrap(True)
+ self.intro_tab3.set_size_request(700, 300)
+ self.intro_tab3.set_markup("<big><b>Look at the number 182,727:</b>\n\n\t182,727 rounded to the nearest <b>ten</b> is 182,730\n\t182,727 rounded to the nearest <b>hundred</b> is 182,700\n\t182,727 rounded to the nearest <b>thousand</b> is 183,000\n\t182,727 rounded to the nearest <b>ten thousand</b> is 180,000\n\t182,727 rounded to the nearest <b>hundred thousand</b> is 200,000\n\n\nAll the numbers to the right of the place that you are <b>rounding to</b> become zeros.\n\n\t34 rounded to the nearest <b>ten</b> is 30\n\t4,654 rounded to the nearest <b>hundred</b> is 4,700\n\t986 rounded to the nearest <b>thousand</b> is 1,000\n\t219,526 rounded to the nearest <b>ten thousand</b> is 220,000\n\t742,899 rounded to the nearest <b>hundred thousand</b> is 700,000</big>")
self.introduction.append_page(self.intro_tab3)
#
# create the quiz tab