You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
311 B
Python
15 lines
311 B
Python
18 years ago
|
from sugar.activity.Activity import Activity
|
||
|
from webbrowser import WebBrowser
|
||
|
|
||
|
_HOMEPAGE = 'http://www.google.com'
|
||
|
|
||
|
class WebActivity(Activity):
|
||
|
def __init__(self):
|
||
|
Activity.__init__(self)
|
||
|
|
||
|
self._browser = WebBrowser()
|
||
|
self.add(self._browser)
|
||
|
self._browser.show()
|
||
|
|
||
|
self._browser.load_url(_HOMEPAGE)
|