diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-05-19 17:28:35 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-05-19 17:28:35 (GMT) |
commit | 938689ffb15bc5ba3d0201105ed5e0454a7598d6 (patch) | |
tree | aadc70706abc58325d6d3b3e722d56458e5ff54f /src | |
parent | 54bfce91fbf10e69a3782c30aa381fdbf3bc7a5d (diff) |
Implement load_uri.
Diffstat (limited to 'src')
-rw-r--r-- | src/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/__init__.py b/src/__init__.py index 86be877..9aa367d 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -17,4 +17,10 @@ class Browser(_hulahop.Browser): web_browser = browser.queryInterface(interfaces.nsIWebBrowser) return web_browser.contentDOMWindow + def load_uri(self, uri): + browser = self.get_browser() + web_browser = browser.queryInterface(interfaces.nsIWebNavigation) + web_browser.loadURI(uri, interfaces.nsIWebNavigation.LOAD_FLAGS_NONE, + None, None, None) + document = property(get_document) |