E5Network/E5NetworkHeaderDetailsDialog.py

changeset 52
ba69827929ee
child 96
9624a110667d
equal deleted inserted replaced
51:7d80b0f20ca6 52:ba69827929ee
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2009 - 2010 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 PyQt4.QtGui import QDialog
11 from PyQt4.QtCore import pyqtSlot
12
13 from .Ui_E5NetworkHeaderDetailsDialog import Ui_E5NetworkHeaderDetailsDialog
14
15 class E5NetworkHeaderDetailsDialog(QDialog, Ui_E5NetworkHeaderDetailsDialog):
16 """
17 Class implementing a dialog to show the data of a response or reply header.
18 """
19 def __init__(self, parent = None):
20 """
21 Constructor
22
23 @param parent reference to the parent object (QWidget)
24 """
25 QDialog.__init__(self, parent)
26 self.setupUi(self)
27
28 def setData(self, name, value):
29 """
30 Public method to set the data to display.
31
32 @param name name of the header (string)
33 @param value value of the header (string)
34 """
35 self.nameEdit.setText(name)
36 self.valueEdit.setPlainText(value)

eric ide

mercurial