eric7/WebBrowser/CookieJar/CookiesDialog.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8318
962bce857696
child 8358
144a6b854f70
equal deleted inserted replaced
8355:8a7677a63c8d 8356:68ec9c3d4de5
8 """ 8 """
9 9
10 from PyQt6.QtCore import pyqtSlot, Qt, QByteArray 10 from PyQt6.QtCore import pyqtSlot, Qt, QByteArray
11 from PyQt6.QtWidgets import QDialog, QTreeWidgetItem, QHeaderView 11 from PyQt6.QtWidgets import QDialog, QTreeWidgetItem, QHeaderView
12 12
13 from E5Gui import E5MessageBox 13 from E5Gui import EricMessageBox
14 14
15 from .Ui_CookiesDialog import Ui_CookiesDialog 15 from .Ui_CookiesDialog import Ui_CookiesDialog
16 16
17 17
18 class CookiesDialog(QDialog, Ui_CookiesDialog): 18 class CookiesDialog(QDialog, Ui_CookiesDialog):
139 @pyqtSlot() 139 @pyqtSlot()
140 def on_removeAllButton_clicked(self): 140 def on_removeAllButton_clicked(self):
141 """ 141 """
142 Private slot to remove all cookies. 142 Private slot to remove all cookies.
143 """ 143 """
144 res = E5MessageBox.yesNo( 144 res = EricMessageBox.yesNo(
145 self, 145 self,
146 self.tr("Remove All Cookies"), 146 self.tr("Remove All Cookies"),
147 self.tr("""Do you really want to remove all stored cookies?""")) 147 self.tr("""Do you really want to remove all stored cookies?"""))
148 if res: 148 if res:
149 self.__cookieJar.clear() 149 self.__cookieJar.clear()

eric ide

mercurial