Helpviewer/FeaturePermissionBar.py

changeset 4332
64034d85c709
parent 4316
493891cbacee
child 4353
cff7e27fb7b8
equal deleted inserted replaced
4331:711e7c35a49b 4332:64034d85c709
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 from PyQt5.QtCore import pyqtSignal, QPropertyAnimation, QByteArray, \ 12 from PyQt5.QtCore import pyqtSignal, QPropertyAnimation, QByteArray, \
13 QEasingCurve, QPoint 13 QEasingCurve, QPoint
14 from PyQt5.QtWidgets import QWidget, QLabel, QHBoxLayout, QPushButton 14 from PyQt5.QtWidgets import QWidget, QLabel, QHBoxLayout, QPushButton
15 from PyQt5.QtWebKitWidgets import QWebFrame, QWebPage 15 from PyQt5.QtWebKitWidgets import QWebFrame, QWebPage
16 16
17 import UI.PixmapCache 17 import UI.PixmapCache
18
18 19
19 class FeaturePermissionBar(QWidget): 20 class FeaturePermissionBar(QWidget):
20 """ 21 """
21 Class implementing the feature permission bar widget. 22 Class implementing the feature permission bar widget.
22 """ 23 """
38 39
39 self.__frame = None 40 self.__frame = None
40 self.__feature = None 41 self.__feature = None
41 42
42 self.__permissionFeatureTexts = { 43 self.__permissionFeatureTexts = {
43 QWebPage.Notifications: 44 QWebPage.Notifications:
44 self.tr("{0} wants to use desktop notifications."), 45 self.tr("{0} wants to use desktop notifications."),
45 QWebPage.Geolocation: 46 QWebPage.Geolocation:
46 self.tr("{0} wants to use your position.") 47 self.tr("{0} wants to use your position.")
47 } 48 }
48 49

eric ide

mercurial