2523:139f182b72f6 | 2525:8b507a9a2d40 |
---|---|
4 # | 4 # |
5 | 5 |
6 """ | 6 """ |
7 Module implementing the web plug-in factory. | 7 Module implementing the web plug-in factory. |
8 """ | 8 """ |
9 | |
10 from __future__ import unicode_literals # __IGNORE_WARNING__ | |
9 | 11 |
10 from PyQt4.QtWebKit import QWebPluginFactory | 12 from PyQt4.QtWebKit import QWebPluginFactory |
11 | 13 |
12 | 14 |
13 class WebPluginFactory(QWebPluginFactory): | 15 class WebPluginFactory(QWebPluginFactory): |
18 """ | 20 """ |
19 Constructor | 21 Constructor |
20 | 22 |
21 @param parent reference to the parent object (QObject) | 23 @param parent reference to the parent object (QObject) |
22 """ | 24 """ |
23 super().__init__(parent) | 25 super(WebPluginFactory, self).__init__(parent) |
24 | 26 |
25 self.__loaded = False | 27 self.__loaded = False |
26 | 28 |
27 def create(self, mimeType, url, argumentNames, argumentValues): | 29 def create(self, mimeType, url, argumentNames, argumentValues): |
28 """ | 30 """ |
63 def refreshPlugins(self): | 65 def refreshPlugins(self): |
64 """ | 66 """ |
65 Public method to refresh the list of supported plug-ins. | 67 Public method to refresh the list of supported plug-ins. |
66 """ | 68 """ |
67 self.__initialize() | 69 self.__initialize() |
68 super().refreshPlugins() | 70 super(WebPluginFactory, self).refreshPlugins() |
69 | 71 |
70 def __initialize(self): | 72 def __initialize(self): |
71 """ | 73 """ |
72 Private method to initialize the factory. | 74 Private method to initialize the factory. |
73 """ | 75 """ |