Skip to content

Commit

Permalink
new repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Samson Goddy authored and walterbender committed Mar 4, 2015
1 parent 088db05 commit 42f3a6a
Show file tree
Hide file tree
Showing 9 changed files with 800 additions and 0 deletions.
674 changes: 674 additions & 0 deletions COPYING.txt

Large diffs are not rendered by default.

Binary file added Football.fla
Binary file not shown.
Binary file added Football.swf
Binary file not shown.
6 changes: 6 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
EatBoom.FLA

developed by Innovations for Learning
http://www.innovationsforlearning.org

mailto:info@innovationsforlearning.org
14 changes: 14 additions & 0 deletions activity/activity-football.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions activity/activity.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Activity]
name = Football
activity_version = 1
bundle_id = org.sugarlabs.Football
icon = activity-football
exec = sugar-activity footballactivity.FootballActivity
licence = GPLv2+
show_launcher = yes

53 changes: 53 additions & 0 deletions footballactivity.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# GMT+1 10:00 pm
# Copyright (C) 2014, Samson Goddy <samsongoddy@hotmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
import os

import gtk
try:
import gnash
except ImportError:
import subprocess

from sugar.activity import activity

SWFNAME = 'Football.swf'

class FootballActivity(activity.Activity):
def __init__(self, handle):
activity.Activity.__init__(self, handle)

toolbox = activity.ActivityToolbox(self)
self.set_toolbox(toolbox)
toolbox.show()

try:
view = gnash.View()
view.props.uri = os.path.join(activity.get_bundle_path(), SWFNAME)
self.set_canvas(view)
view.show()

except NameError:
socket = gtk.Socket()
self.set_canvas(socket)
self.show_all()

args = [
'gnash',
'-x', str(socket.get_id()),
os.path.join(activity.get_bundle_path(), SWFNAME)
]
self._process = subprocess.Popen(args)
22 changes: 22 additions & 0 deletions po/Football.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-09-12 15:32-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"

#: activity/activity.info:2
msgid "Football"
msgstr ""
22 changes: 22 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

from sugar.activity import bundlebuilder
if __name__ == "__main__":
bundlebuilder.start()

0 comments on commit 42f3a6a

Please sign in to comment.