Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/examples/bots/bots.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bots/bots.py')
-rw-r--r--examples/bots/bots.py20
1 files changed, 20 insertions, 0 deletions
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()