diff options
author | Rael <rael.gc@gmail.com> | 2015-10-14 22:06:35 -0300 |
---|---|---|
committer | Rael <rael.gc@gmail.com> | 2015-10-14 22:06:35 -0300 |
commit | 2dd8236094cd0b223b5280953b6456d290c02252 (patch) | |
tree | 1537440d70c3dc06ad9d40e1dacf5ef32f461157 | |
parent | 5754dc119ac6e00de09cca27ebe91ad80424a367 (diff) | |
download | scudcloud-2dd8236094cd0b223b5280953b6456d290c02252.zip scudcloud-2dd8236094cd0b223b5280953b6456d290c02252.tar.gz scudcloud-2dd8236094cd0b223b5280953b6456d290c02252.tar.bz2 |
Draft to use qupzilla desktop notifications
-rw-r--r-- | scudcloud-1.0/lib/wrapper.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scudcloud-1.0/lib/wrapper.py b/scudcloud-1.0/lib/wrapper.py index 318ceb5..eb45713 100644 --- a/scudcloud-1.0/lib/wrapper.py +++ b/scudcloud-1.0/lib/wrapper.py @@ -24,8 +24,12 @@ class Wrapper(QWebView): self.connect(self, SIGNAL("loadStarted()"), self.loadStarted) self.connect(self, SIGNAL("loadFinished(bool)"), self.loadFinished) self.connect(self, SIGNAL("linkClicked(const QUrl&)"), self.linkClicked) + #self.page().connect(self.page(), SIGNAL("featurePermissionRequested (QWebFrame*,QWebPage::Feature)"), self.permissionRequested) self.addActions() + def permissionRequested(self, frame, feature): + self.page().setFeaturePermission(frame, feature, QWebPage.PermissionGrantedByUser) + def configure_proxy(self): proxy = urlparse(os.environ.get('http_proxy') or os.environ.get('HTTP_PROXY')) if proxy.hostname is not None and proxy.port is not None: |