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) |