eric6/Helpviewer/CookieJar/CookieDetailsDialog.py

branch
maintenance
changeset 7286
7eb04391adf7
parent 7226
babe80d84a3e
parent 7285
1ff497f33f31
child 7287
1c17f2191bdd
equal deleted inserted replaced
7226:babe80d84a3e 7286:7eb04391adf7
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2009 - 2019 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