E5Network/E5SslInfoDialog.py

changeset 2359
ef81d2d0a031
equal deleted inserted replaced
2357:f6a2cbf3f514 2359:ef81d2d0a031
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2010 - 2013 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module implementing a dialog to show SSL certificate infos.
8 """
9
10 from PyQt4.QtGui import QDialog
11
12 from .Ui_E5SslInfoDialog import Ui_E5SslInfoDialog
13
14
15 class E5SslInfoDialog(QDialog, Ui_E5SslInfoDialog):
16 """
17 Class implementing a dialog to show SSL certificate infos.
18 """
19 def __init__(self, certificate, parent=None):
20 """
21 Constructor
22
23 @param certificate reference to the SSL certificate (QSslCertificate)
24 @param parent reference to the parent widget (QWidget)
25 """
26 super().__init__(parent)
27 self.setupUi(self)
28
29 self.sslWidget.showCertificate(certificate)

eric ide

mercurial