WebBrowser/CookieJar/CookieDetailsDialog.py

branch
QtWebEngine
changeset 4845
2d22ff71c005
parent 4631
5c1a96925da4
equal deleted inserted replaced
4840:69ee7965ba27 4845:2d22ff71c005
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2009 - 2016 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module implementing a dialog showing the cookie data.
8 """
9
10 from __future__ import unicode_literals
11
12 from PyQt5.QtCore import Qt
13 from PyQt5.QtWidgets import QDialog
14
15 from .Ui_CookieDetailsDialog import Ui_CookieDetailsDialog
16
17
18 class CookieDetailsDialog(QDialog, Ui_CookieDetailsDialog):
19 """
20 Class implementing a dialog showing the cookie data.
21 """
22 def __init__(self, parent=None):
23 """
24 Constructor
25
26 @param parent reference to the parent object (QWidget)
27 """
28 super(CookieDetailsDialog, self).__init__(parent)
29 self.setupUi(self)
30 self.setWindowFlags(Qt.Window)
31
32 def setData(self, domain, name, path, secure, expires, value):
33 """
34 Public method to set the data to be shown.
35
36 @param domain domain of the cookie (string)
37 @param name name of the cookie (string)
38 @param path path of the cookie (string)
39 @param secure flag indicating a secure cookie (boolean)
40 @param expires expiration time of the cookie (string)
41 @param value value of the cookie (string)
42 """
43 self.domainEdit.setText(domain)
44 self.nameEdit.setText(name)
45 self.pathEdit.setText(path)
46 self.secureCheckBox.setChecked(secure)
47 self.expirationEdit.setText(expires)
48 self.valueEdit.setPlainText(value)

eric ide

mercurial