diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-06-20 07:19:33 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-06-20 07:19:33 (GMT) |
commit | 028b15d3df8ba0ef1d2373ecae30e4887f105019 (patch) | |
tree | 1feea0802fdff8a6869241842b6bfd9f1dc0edbc /examples | |
parent | 0df8d01dced3537e8a0496639177a3ec9b1900cc (diff) |
Initial bots code... probably a crack idea but let's see if I can
get something useful out of it.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/bots/LICENSE | 7 | ||||
-rw-r--r-- | examples/bots/bots.activity | 2 | ||||
-rw-r--r-- | examples/bots/bots.py | 20 | ||||
-rw-r--r-- | examples/bots/chaitanya.jpg | bin | 0 -> 1653 bytes | |||
-rw-r--r-- | examples/bots/kiu.jpg | bin | 0 -> 1364 bytes | |||
-rw-r--r-- | examples/bots/penelope.jpg | bin | 0 -> 1577 bytes |
6 files changed, 29 insertions, 0 deletions
diff --git a/examples/bots/LICENSE b/examples/bots/LICENSE new file mode 100644 index 0000000..e80f60b --- /dev/null +++ b/examples/bots/LICENSE @@ -0,0 +1,7 @@ +This work is licensed under the Creative Commons Attribution 2.5 License. To view a copy of this license, visit http://creativecommons.org/licenses/by/2.5/ or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA. + +Attributions: + +chaitanya.jpg http://www.flickr.com/photos/meanestindian/166408558/ +penelope.jpg http://www.flickr.com/photos/gagah/9257515/ +kiu.jpg http://flickr.com/photos/31072589@N00/139234295/ diff --git a/examples/bots/bots.activity b/examples/bots/bots.activity new file mode 100644 index 0000000..fe18e11 --- /dev/null +++ b/examples/bots/bots.activity @@ -0,0 +1,2 @@ +[Activity] +python_class = bots diff --git a/examples/bots/bots.py b/examples/bots/bots.py new file mode 100644 index 0000000..7b7ac66 --- /dev/null +++ b/examples/bots/bots.py @@ -0,0 +1,20 @@ +import os + +import pygtk +pygtk.require('2.0') +import gtk + +from sugar.bots import Bot + +basedir = os.path.dirname(__file__) + +bot = Bot("Chaitanya", os.path.join(basedir, "chaitanya.jpg")) +bot.start() + +bot = Bot("Kiu", os.path.join(basedir, "kiu.jpg")) +bot.start() + +bot = Bot("Penelope", os.path.join(basedir, "penelope.jpg")) +bot.start() + +gtk.main() diff --git a/examples/bots/chaitanya.jpg b/examples/bots/chaitanya.jpg Binary files differnew file mode 100644 index 0000000..aecaf81 --- /dev/null +++ b/examples/bots/chaitanya.jpg diff --git a/examples/bots/kiu.jpg b/examples/bots/kiu.jpg Binary files differnew file mode 100644 index 0000000..1beca11 --- /dev/null +++ b/examples/bots/kiu.jpg diff --git a/examples/bots/penelope.jpg b/examples/bots/penelope.jpg Binary files differnew file mode 100644 index 0000000..0d81097 --- /dev/null +++ b/examples/bots/penelope.jpg |