From a8e63bd07be515b777d5eba9073a95e21f970e64 Mon Sep 17 00:00:00 2001 From: Justin Gallardo Date: Mon, 20 Nov 2006 23:16:37 +0000 Subject: Initial Import - AbiWord activitiy bundle --- (limited to 'AbiWordActivity.py') 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 () -- cgit v0.9.1