diff options
author | s1pc18 <s1pc18@localhost.localdomain> | 2010-05-19 12:06:21 (GMT) |
---|---|---|
committer | s1pc18 <s1pc18@localhost.localdomain> | 2010-05-19 12:09:08 (GMT) |
commit | 41887c07a955815f4101f6104e11aa5754e00faf (patch) | |
tree | 86e84441079452aa585767444aa7d1d252e6b06d |
Initial import of activity skeleton
-rwxr-xr-x | activity.py | 20 | ||||
-rwxr-xr-x | activity/activity-sugarbrain.svg | 8 | ||||
-rwxr-xr-x | activity/activity.info | 7 | ||||
-rwxr-xr-x | setup.py | 3 |
4 files changed, 38 insertions, 0 deletions
diff --git a/activity.py b/activity.py new file mode 100755 index 0000000..4f16635 --- /dev/null +++ b/activity.py @@ -0,0 +1,20 @@ +from sugar.activity import activity +import logging + +import gtk + +class SugarBrainActivity(activity.Activity): + def __init__(self, handle): + activity.Activity.__init__(self, handle) + + # Creates the Toolbox. It contains the Activity Toolbar, which is the + # bar that appears on every Sugar window and contains essential + # functionalities, such as the 'Collaborate' and 'Close' buttons. + toolbox = activity.ActivityToolbox(self) + self.set_toolbox(toolbox) + toolbox.show() + + self.box_principal = gtk.VBox(False, 0) + + self.set_canvas(self.box_principal) + self.box_principal.show() diff --git a/activity/activity-sugarbrain.svg b/activity/activity-sugarbrain.svg new file mode 100755 index 0000000..d5b42fe --- /dev/null +++ b/activity/activity-sugarbrain.svg @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [ + <!ENTITY stroke_color "#666666"> + <!ENTITY fill_color "#FFFFFF"> +]> +<svg xmlns="http://www.w3.org/2000/svg" width="55" height="55"> + <rect x="5" y="5" width="45" height="45" stroke="#666666" fill="#FFFFFF" stroke-width="3.5"/> +</svg> diff --git a/activity/activity.info b/activity/activity.info new file mode 100755 index 0000000..dd3ebfd --- /dev/null +++ b/activity/activity.info @@ -0,0 +1,7 @@ +[Activity] +name = SugarBrain +bundle_id = org.sugarlabs.SugarBrain +class = activity.SugarBrainActivity +icon = activity-sugarbrain +activity_version = 1 +show_launcher = yes diff --git a/setup.py b/setup.py new file mode 100755 index 0000000..ec0f64e --- /dev/null +++ b/setup.py @@ -0,0 +1,3 @@ +#!/usr/bin/env python +from sugar.activity import bundlebuilder +bundlebuilder.start() |