eric7/WebBrowser/VirusTotal/VirusTotalWhoisDialog.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) 2015 - 2021 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module implementing a dialog to show the 'whois' information.
8 """
9
10 from PyQt5.QtWidgets import QDialog
11
12 from .Ui_VirusTotalWhoisDialog import Ui_VirusTotalWhoisDialog
13
14 import UI.PixmapCache
15
16
17 class VirusTotalWhoisDialog(QDialog, Ui_VirusTotalWhoisDialog):
18 """
19 Class implementing a dialog to show the 'whois' information.
20 """
21 def __init__(self, domain, whois, parent=None):
22 """
23 Constructor
24
25 @param domain domain name
26 @type str
27 @param whois whois information
28 @type str
29 @param parent reference to the parent widget
30 @type QWidget
31 """
32 super().__init__(parent)
33 self.setupUi(self)
34
35 self.headerLabel.setText(
36 self.tr("<b>Whois information for domain {0}</b>").format(domain))
37 self.headerPixmap.setPixmap(
38 UI.PixmapCache.getPixmap("virustotal"))
39 self.whoisEdit.setPlainText(whois)

eric ide

mercurial