Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/gnome-dx3/FotoAventura/FotoAventura.py
diff options
context:
space:
mode:
Diffstat (limited to 'gnome-dx3/FotoAventura/FotoAventura.py')
-rw-r--r--gnome-dx3/FotoAventura/FotoAventura.py68
1 files changed, 68 insertions, 0 deletions
diff --git a/gnome-dx3/FotoAventura/FotoAventura.py b/gnome-dx3/FotoAventura/FotoAventura.py
new file mode 100644
index 0000000..fcf2f3e
--- /dev/null
+++ b/gnome-dx3/FotoAventura/FotoAventura.py
@@ -0,0 +1,68 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+# FotoAventura.py por:
+# Flavio Danesse <fdanesse@gmail.com>
+# Activity Central - CeibalJAM! - Uruguay
+
+# 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 sys
+import time
+import hulahop
+import gtk
+
+from sugar import env
+
+hulahop.startup(os.path.join(env.get_profile_path(), 'gecko'))
+from hulahop.webview import WebView
+
+BASEPATH = os.path.abspath(os.path.dirname(__file__))
+
+class FotoAventura(gtk.Window):
+
+ def __init__(self):
+
+ gtk.Window.__init__(self)
+
+ self.set_title("FotoAventura")
+ self.set_icon_from_file(
+ os.path.join(BASEPATH, "FotoAventura.svg"))
+
+ self.maximize()
+
+ self.add(Navegador())
+
+ self.show_all()
+ self.realize()
+
+ self.connect("destroy", sys.exit)
+
+class Navegador(WebView):
+
+ def __init__(self):
+
+ WebView.__init__(self)
+
+ self.show_all()
+
+ self.load_uri(os.path.join(BASEPATH, "juego.swf"))
+
+if __name__ == "__main__":
+
+ FotoAventura()
+ gtk.main()
+ \ No newline at end of file