示例#1
0
 def show_about(self):
     message = '<h2>{} {}</h2>'.format(QApplication.applicationName(), QApplication.applicationVersion())
     message += '<h3>A digital image forensic toolkit</h3>'
     message += '<p>author: <a href="{}">{}</a></p>'.format(
         QApplication.organizationDomain(), QApplication.organizationName())
     message += '<p>source: <a href="https://github.com/GuidoBartoli/sherloq">GitHub repository</a></p>'
     QMessageBox.about(self, self.tr('About'), message)
示例#2
0
    def __init__(self, parent=None):
        super().__init__(parent)

        textBox = QTextBrowser()
        textBox.setFrameStyle(QFrame.NoFrame)
        textBox.setStyleSheet("background-color:transparent;")
        textBox.setOpenExternalLinks(True)
        textBox.setHtml(self.tr("<html><body>"
            "<p>{0} is an open source editor tool written in Qt for Python and designed for easy creation and editing of documents with character-separated values.</p>"
            "<p>Copyright &copy; 2020-2021 <a href=\"{1}\" title=\"Visit organization's homepage\">{2}</a>.</p>"
            "<p>This application is licensed under the terms of the <a href=\"https://www.gnu.org/licenses/gpl-3.0.en.html\" title=\"Visit license's homepage\">GNU General Public License, version 3</a>.</p>"
            "</body></html>").format(QApplication.applicationName(), QApplication.organizationDomain(), QApplication.organizationName()))

        # Main layout
        self._layout = QVBoxLayout(self)
        self._layout.addWidget(textBox)