Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/AbiWordActivity.py
diff options
context:
space:
mode:
authorJustin Gallardo <justin.gallardo@gmail.com>2006-11-20 23:16:37 (GMT)
committer Justin Gallardo <justin.gallardo@gmail.com>2006-11-20 23:16:37 (GMT)
commita8e63bd07be515b777d5eba9073a95e21f970e64 (patch)
treee8636ed950dd15d9bdeeaa618eb789da2e3a9bec /AbiWordActivity.py
Initial Import - AbiWord activitiy bundle
Diffstat (limited to 'AbiWordActivity.py')
-rwxr-xr-xAbiWordActivity.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/AbiWordActivity.py b/AbiWordActivity.py
new file mode 100755
index 0000000..24fb415
--- /dev/null
+++ b/AbiWordActivity.py
@@ -0,0 +1,37 @@
+
+import logging
+import os
+import time
+import gtk
+
+from sugar.activity.Activity import Activity
+
+
+class AbiWord (gtk.Socket):
+
+ def __init__ (self):
+ gtk.Socket.__init__ (self)
+
+ self.connect ('realize', self.realize_cb)
+
+
+ def realize_cb (self, event):
+
+ params = [
+ 'abiword',
+ '--nosplash',
+ '--gtk-socket-id=' + str (self.get_id ())
+ ]
+ os.spawnvp (os.P_NOWAIT, 'abiword', params)
+
+
+class AbiWordActivity (Activity):
+
+ def __init__ (self):
+ Activity.__init__ (self)
+
+ self.set_title ("AbiWord")
+
+ abiword = AbiWord ()
+ self.add (abiword)
+ abiword.show_all ()