Permalink
Browse files

Add version and release date in the about page.

  • Loading branch information...
1 parent 3cff884 commit d536d94507631c0fb491aba0f253157a2ef9727f @tlecomte committed Apr 29, 2012
Showing with 11 additions and 1 deletion.
  1. +11 −1 friture/about.py
View
@@ -19,15 +19,25 @@
from PyQt4 import QtGui, QtCore
import friture.friture_rc
+import datetime
+
+major = 0
+minor = 3
+micro = 0
+qualifier = ""
+date = datetime.date(2012, 4, 29)
+
+version = "%d.%d.%d%s" %(major, minor, micro, qualifier) if (micro > 0) else "%d.%d%s" %(major, minor, qualifier)
aboutText = """
+<p> <b>Friture %s</b> (dated %s)
<p> Friture is an application for real-time audio analysis.
<p> Written in Python, using PyQt, PyQwt, PyAudio and SciPy.
<p> License is GPLv3.
<p> Homepage: <a href="http://www.github.com/tlecomte/friture">http://www.github.com/tlecomte/friture</a>
<p> Send comments, ideas and bug reports to: <a href="mailto:lecomte.timothee@gmail.com">lecomte.timothee@gmail.com</a>
<p> Splash screen photo credit: <a href="http://www.flickr.com/photos/visual_dichotomy/3623619145/">visual.dichotomy</a> (CC BY 2.0)
-"""
+""" %(version, date.isoformat())
class About_Dialog(QtGui.QDialog):
def __init__(self, parent):

0 comments on commit d536d94

Please sign in to comment.