~user-none/niwmarkdowneditor/trunk

« back to all changes in this revision

Viewing changes to src/about.py

  • Committer: John Schember
  • Date: 2009-08-30 23:42:05 UTC
  • Revision ID: john@nachtimwald.com-20090830234205-0y6y3xn6ax0sjvho
Initial import.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
 
 
3
__license__ = 'GPL 3'
 
4
__copyright__ = '2009, John Schember <john@nachtimwald.com>'
 
5
__docformat__ = 'restructuredtext en'
 
6
 
 
7
'''
 
8
About dialog.
 
9
'''
 
10
 
 
11
import os
 
12
 
 
13
from PyQt4.Qt import QDialog
 
14
from PyQt4.Qt import QUrl
 
15
 
 
16
from constants import APP_NAME
 
17
from constants import APP_VERSION
 
18
from uiloader import loadUi
 
19
 
 
20
form_class = loadUi(os.path.join(os.path.dirname(__file__), 'forms', 'about.ui'))
 
21
 
 
22
class AboutDialog(QDialog, form_class):
 
23
 
 
24
    def __init__(self, *args):
 
25
        QDialog.__init__(self, *args)
 
26
        self.setupUi(self)
 
27
 
 
28
        self.credits_view.load(QUrl('qrc:///credits.html'))
 
29
        self.translations_view.load(QUrl('qrc:///translations.html'))
 
30
        self.license_view.load(QUrl('qrc:///gpl-3.0-standalone.html'))
 
31
 
 
32
        self.header.setText('%s - %s' % (APP_NAME, APP_VERSION))