From e6c65d33e68fdfe3b28bff284c62ead374566504 Mon Sep 17 00:00:00 2001 From: Brian Silverman Date: Wed, 30 May 2007 13:28:45 +0000 Subject: Initial import --- (limited to 'TurtleArtActivity.py') diff --git a/TurtleArtActivity.py b/TurtleArtActivity.py new file mode 100755 index 0000000..7869e4a --- /dev/null +++ b/TurtleArtActivity.py @@ -0,0 +1,25 @@ +import ta + +from sugar.activity import activity + +class TurtleArtActivity(activity.Activity): + def __init__(self, handle): + activity.Activity.__init__(self, handle) + self.connect('destroy', self._cleanup_cb) + + self.gamename = 'turtleart' + self.set_title("TurtleArt") + + self.connect('focus_in_event', self._focus_in) + self.connect('focus_out_event', self._focus_out) + ta.init(self, activity.get_bundle_path()) + + + def _cleanup_cb(self, data=None): + return + + def _focus_in(self, event, data=None): + return + + def _focus_out(self, event, data=None): + return -- cgit v0.9.1