eric7/E5Network/E5NetworkHeaderDetailsDialog.py

branch
eric7
changeset 8312
800c432b34c8
parent 8218
7c09585bd960
child 8318
962bce857696
equal deleted inserted replaced
8311:4e8b98454baa 8312:800c432b34c8
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2009 - 2021 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module implementing a dialog to show the data of a response or reply header.
8 """
9
10 from PyQt5.QtCore import Qt
11 from PyQt5.QtWidgets import QDialog
12
13 from .Ui_E5NetworkHeaderDetailsDialog import Ui_E5NetworkHeaderDetailsDialog
14
15
16 class E5NetworkHeaderDetailsDialog(QDialog, Ui_E5NetworkHeaderDetailsDialog):
17 """
18 Class implementing a dialog to show the data of a response or reply header.
19 """
20 def __init__(self, parent=None):
21 """
22 Constructor
23
24 @param parent reference to the parent object (QWidget)
25 """
26 super().__init__(parent)
27 self.setupUi(self)
28 self.setWindowFlags(Qt.WindowType.Window)
29
30 def setData(self, name, value):
31 """
32 Public method to set the data to display.
33
34 @param name name of the header (string)
35 @param value value of the header (string)
36 """
37 self.nameEdit.setText(name)
38 self.valueEdit.setPlainText(value)

eric ide

mercurial