From e05f536d6066b534095e852228acbd1fe7bc2cd6 Mon Sep 17 00:00:00 2001 From: Sam Neymotin Date: Fri, 8 Jun 2018 12:23:59 -0400 Subject: [PATCH] display version in about box --- hnn_qt5.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hnn_qt5.py b/hnn_qt5.py index 836f11079..562aa596b 100644 --- a/hnn_qt5.py +++ b/hnn_qt5.py @@ -1692,12 +1692,13 @@ def setparams (self): bringwintotop(self.baseparamwin) def showAboutDialog (self): + from __init__ import __version__ msgBox = QMessageBox(self) msgBox.setTextFormat(Qt.RichText) msgBox.setWindowTitle('About') - msgBox.setText("Human Neocortical Neurosolver (HNN)
"+\ + msgBox.setText("Human Neocortical Neurosolver (HNN) v" + __version__ + "
"+\ "https://hnn.brown.edu
"+\ - "On Github
"+\ + "HNN On Github
"+\ "© 2017-2018 Brown University, Providence, RI
"+\ "Software License") msgBox.setStandardButtons(QMessageBox.Ok)