Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/examples/gmail/gmail.py
blob: 37c8feca18cc4234a7aa2b37cdc3102e0d69f2f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import os

import geckoembed

from sugar.activity.Activity import Activity
import sugar.env

_GMAIL_ACTIVITY_TYPE = "_gmail_google._tcp"

class GMailActivity(Activity):
	def __init__(self, args):
		Activity.__init__(self, _GMAIL_ACTIVITY_TYPE)

		profile_path = os.path.join(sugar.env.get_user_dir(), 'gmail')
		geckoembed.set_profile_path(profile_path)
		self.set_title("Mail")

		embed = geckoembed.Embed()
		self.add(embed)
		embed.show()
		
		embed.load_address("http://www.gmail.com")