[Sugar-devel] opening a url with WebActivity

Erik Blankinship erikb at mediamods.com
Fri Aug 12 14:34:17 EDT 2011


>
>
>> FWIW you can take a look at the activity
>
> http://activities.sugarlabs.org/en-US/sugar/addon/4455
>
>
>
Thank you Rafael.  Good idea.

As you suggest, this activity opens URLs inside of the current activity.

hulahop.startup(os.path.join(env.get_profile_path(), 'gecko'))
from hulahop.webview import WebView

        self.webview = WebView()
self.set_canvas(self.webview)
        self.webview.show()
        self.webview.load_uri('http://google.com')

I am not sure if this approach will continue to work after the coming move
from firefox to webkit.  Can anyone speak to this?

To avoid problems like this, I was hoping to have my current activity switch
to the browse activity if possible.  Is this possible?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110812/313eb107/attachment.html>


More information about the Sugar-devel mailing list