Rev 3 | Blame | Last modification | View Log | RSS feed
#-----------------------------------------------------------------------------
# Name: HelpAbout.py
# Purpose:
#
# Author: Ron Wellsted
#
# Created: 2015-10-05
# Copyright: (c) 2015
# Licence: GPL 3.0
#-----------------------------------------------------------------------------
# Date Author Modification
#-----------------------------------------------------------------------------
from PyQt4 import uic
from PyQt4.Qt import PYQT_VERSION_STR
import sys
MY_APP_VERSION_STRING = '0.0.1 pre-alpha'
(Ui_HelpAbout, QDialog) = uic.loadUiType('HelpAbout.ui')
class HelpAbout (QDialog):
"""HelpAbout inherits QDialog"""
def __init__ (self, parent = None):
QDialog.__init__(self, parent)
self.ui = Ui_HelpAbout()
self.ui.setupUi(self)
ver = 'ExamClock version' + MY_APP_VERSION_STRING
ver += '\nPython: ' + sys.version
ver += '\nPyQt version: ' + PYQT_VERSION_STR
self.ui.label_versions.setText(ver)
def __del__ (self):
self.ui = None