Skip to content

Commit

Permalink
display version in about box
Browse files Browse the repository at this point in the history
  • Loading branch information
samnemo committed Jun 8, 2018
1 parent ef723e8 commit e05f536
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hnn_qt5.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)<br>"+\
msgBox.setText("Human Neocortical Neurosolver (HNN) v" + __version__ + "<br>"+\
"<a href=https://hnn.brown.edu>https://hnn.brown.edu</a><br>"+\
"<a href=https://github.com/jonescompneurolab/hnn>On Github</a><br>"+\
"<a href=https://github.com/jonescompneurolab/hnn>HNN On Github</a><br>"+\
"© 2017-2018 <a href=http://brown.edu>Brown University, Providence, RI</a><br>"+\
"<a href=https://github.com/jonescompneurolab/hnn/blob/master/LICENSE>Software License</a>")
msgBox.setStandardButtons(QMessageBox.Ok)
Expand Down

0 comments on commit e05f536

Please sign in to comment.