5 |
5 |
6 """ |
6 """ |
7 Module implementing the Flash blocker. |
7 Module implementing the Flash blocker. |
8 """ |
8 """ |
9 |
9 |
|
10 |
|
11 from __future__ import unicode_literals # __IGNORE_WARNING__ |
10 |
12 |
11 from PyQt4.QtCore import pyqtSlot, QUrl, Qt, QByteArray, QTimer |
13 from PyQt4.QtCore import pyqtSlot, QUrl, Qt, QByteArray, QTimer |
12 from PyQt4.QtGui import QWidget, QMenu, QCursor, QDialog, QLabel, QFormLayout |
14 from PyQt4.QtGui import QWidget, QMenu, QCursor, QDialog, QLabel, QFormLayout |
13 from PyQt4.QtNetwork import QNetworkRequest |
15 from PyQt4.QtNetwork import QNetworkRequest |
14 from PyQt4.QtWebKit import QWebHitTestResult, QWebElement, QWebView, QWebElementCollection |
16 from PyQt4.QtWebKit import QWebHitTestResult, QWebElement, QWebView, QWebElementCollection |
35 @param url requested URL (QUrl) |
37 @param url requested URL (QUrl) |
36 @param argumentNames list of argument names (list of strings) |
38 @param argumentNames list of argument names (list of strings) |
37 @param argumentValues list of argument values (list of strings) |
39 @param argumentValues list of argument values (list of strings) |
38 @param parent reference to the parent widget (QWidget) |
40 @param parent reference to the parent widget (QWidget) |
39 """ |
41 """ |
40 super().__init__(parent) |
42 super(ClickToFlash, self).__init__(parent) |
41 |
43 |
42 # Check AdBlock first |
44 # Check AdBlock first |
43 import Helpviewer.HelpWindow |
45 import Helpviewer.HelpWindow |
44 manager = Helpviewer.HelpWindow.HelpWindow.adBlockManager() |
46 manager = Helpviewer.HelpWindow.HelpWindow.adBlockManager() |
45 if manager.isEnabled(): |
47 if manager.isEnabled(): |