Helpviewer/SslInfoDialog.py

Sat, 29 Sep 2012 12:45:07 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 29 Sep 2012 12:45:07 +0200
branch
5_2_x
changeset 2072
f2c3bb7b0fb5
parent 1509
c0b5e693b0eb
child 2302
f29e9405c851
permissions
-rw-r--r--

Fixed an issue with the web browser main window.
(grafted from 136eb25e4314d79418b6805aa16b066c7e3bd2c1)

# -*- coding: utf-8 -*-

# Copyright (c) 2010 - 2012 Detlev Offenbach <detlev@die-offenbachs.de>
#

"""
Module implementing a dialog to show SSL certificate infos.
"""

from PyQt4.QtGui import QDialog

from .Ui_SslInfoDialog import Ui_SslInfoDialog


class SslInfoDialog(QDialog, Ui_SslInfoDialog):
    """
    Class implementing a dialog to show SSL certificate infos.
    """
    def __init__(self, certificate, parent=None):
        """
        Constructor
        
        @param certificate reference to the SSL certificate (QSslCertificate)
        @param parent reference to the parent widget (QWidget)
        """
        super().__init__(parent)
        self.setupUi(self)
        
        self.sslWidget.showCertificate(certificate)

eric ide

mercurial