Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/simplegraphhelp.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-03-07 06:13:31 (GMT)
committer Agustin Zubiaga <aguz@sugarlabs.org>2012-03-07 15:22:14 (GMT)
commit25e5093ca74f824268ee81523de9c54f3cc5afa1 (patch)
tree7c2ba40c05badf4912e87a2ca9634a27775a608b /simplegraphhelp.py
parentf4b2d1915bbfb5d0d3c013dce0112d4356ccb417 (diff)
Add help
The intention of this help is use it in other activities. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> Signed-off-by: Agustin Zubiaga <aguz@sugarlabs.org>
Diffstat (limited to 'simplegraphhelp.py')
-rw-r--r--simplegraphhelp.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/simplegraphhelp.py b/simplegraphhelp.py
new file mode 100644
index 0000000..74aafeb
--- /dev/null
+++ b/simplegraphhelp.py
@@ -0,0 +1,37 @@
+# Help for SimpleGraphActivity
+
+from gettext import gettext as _
+
+from helpbutton import HelpButton
+
+
+def create_help(toolbar):
+ helpitem = HelpButton()
+ toolbar.insert(helpitem, -1)
+ helpitem.show()
+ helpitem.add_section(_('Basic usage'))
+ helpitem.add_paragraph(_('First you need add data to create the graphic'))
+ helpitem.add_paragraph(_('You can add data with this button'),
+ 'row-insert')
+ helpitem.add_paragraph(_('...or remove data with this button'),
+ 'row-remove')
+ helpitem.add_paragraph(_('To change the graphic title, just change the activity title'))
+
+ helpitem.add_paragraph(_('Next you can change the type of graphic'))
+ helpitem.add_paragraph(_('Vertical bars'), 'vbar')
+ helpitem.add_paragraph(_('Horizontal bars'), 'hbar')
+ helpitem.add_paragraph(_('Lines'), 'line')
+ helpitem.add_paragraph(_('Pie'), 'pie')
+
+ helpitem.add_section(_('Configs'))
+ helpitem.add_paragraph(_('You can change the colors or the horizontal and vertical labels in the configs toolbar'),
+ 'preferences-system')
+
+ helpitem.add_section(_('Saving as a image'))
+ helpitem.add_paragraph(_('In the activity toolbar you have button to save the graphic as a image'),
+ 'save-as-image')
+
+ helpitem.add_section(_('Reading data from other activities'))
+ helpitem.add_paragraph(_('In the activity toolbar you have buttons to read data from other activities'))
+ helpitem.add_paragraph(_('You can use times measured in the StopWatch activity'), 'import-stopwatch')
+ helpitem.add_paragraph(_('...or data from the Measure activity'), 'import-measure')