Welcome to mirror list, hosted at ThFree Co, Russian Federation.

credits.py « MosesGUI « mingw - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 43aa4f38144ee067c00ac1ca0d4e1294feef9be1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# -*- coding: utf-8 -*-

"""
Module implementing DlgCredits.
"""

from PyQt4.QtGui import QDialog, QDesktopServices
from PyQt4.QtCore import pyqtSignature, QUrl

from Ui_credits import Ui_Dialog


class DlgCredits(QDialog, Ui_Dialog):
    """
    Class documentation goes here.
    """
    def __init__(self, parent=None):
        """
        Constructor
        """
        QDialog.__init__(self, parent)
        self.setupUi(self)

    @pyqtSignature("QString")
    def on_label_linkActivated(self, link):
        """
        Slot documentation goes here.
        """
        QDesktopServices().openUrl(QUrl(link))