src/eric7/WebBrowser/VirusTotal/VirusTotalWhoisDialog.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9413
80c06d472826
equal deleted inserted replaced
9220:e9e7eca7efee 9221:bf71ee032bb4
16 16
17 class VirusTotalWhoisDialog(QDialog, Ui_VirusTotalWhoisDialog): 17 class VirusTotalWhoisDialog(QDialog, Ui_VirusTotalWhoisDialog):
18 """ 18 """
19 Class implementing a dialog to show the 'whois' information. 19 Class implementing a dialog to show the 'whois' information.
20 """ 20 """
21
21 def __init__(self, domain, whois, parent=None): 22 def __init__(self, domain, whois, parent=None):
22 """ 23 """
23 Constructor 24 Constructor
24 25
25 @param domain domain name 26 @param domain domain name
26 @type str 27 @type str
27 @param whois whois information 28 @param whois whois information
28 @type str 29 @type str
29 @param parent reference to the parent widget 30 @param parent reference to the parent widget
30 @type QWidget 31 @type QWidget
31 """ 32 """
32 super().__init__(parent) 33 super().__init__(parent)
33 self.setupUi(self) 34 self.setupUi(self)
34 35
35 self.headerLabel.setText( 36 self.headerLabel.setText(
36 self.tr("<b>Whois information for domain {0}</b>").format(domain)) 37 self.tr("<b>Whois information for domain {0}</b>").format(domain)
37 self.headerPixmap.setPixmap( 38 )
38 UI.PixmapCache.getPixmap("virustotal")) 39 self.headerPixmap.setPixmap(UI.PixmapCache.getPixmap("virustotal"))
39 self.whoisEdit.setPlainText(whois) 40 self.whoisEdit.setPlainText(whois)

eric ide

mercurial