Subversion Repositories ExamClock

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 ron.wellst 1
#-----------------------------------------------------------------------------
2
# Name:        HelpAbout.py
3
# Purpose:
4
#
5
# Author:      Ron Wellsted
6
#
7
# Created:     2015-10-05
8
# Copyright:   (c) 2015
9
# Licence:     GPL 3.0
10
#-----------------------------------------------------------------------------
11
# Date      Author          Modification
12
#-----------------------------------------------------------------------------
13
from PyQt4 import uic
14
from PyQt4.Qt import PYQT_VERSION_STR
15
 
16
import sys
17
 
18
MY_APP_VERSION_STRING = '0.0.1 pre-alpha'
19
 
20
(Ui_HelpAbout, QDialog) = uic.loadUiType('HelpAbout.ui')
21
 
22
class HelpAbout (QDialog):
23
    """HelpAbout inherits QDialog"""
24
 
25
    def __init__ (self, parent = None):
26
        QDialog.__init__(self, parent)
27
        self.ui = Ui_HelpAbout()
28
        self.ui.setupUi(self)
29
        ver = 'ExamClock version' + MY_APP_VERSION_STRING
30
        ver += '\nPython: ' + sys.version
31
        ver += '\nPyQt version: ' + PYQT_VERSION_STR
32
        self.ui.label_versions.setText(ver)
33
 
34
    def __del__ (self):
35
        self.ui = None