Skip to content

Commit

Permalink
Merge aef5bcb into 7a85f80
Browse files Browse the repository at this point in the history
  • Loading branch information
jpgill86 committed Jul 9, 2019
2 parents 7a85f80 + aef5bcb commit 840d640
Showing 1 changed file with 39 additions and 1 deletion.
40 changes: 39 additions & 1 deletion neurotic/gui/standalone.py
Expand Up @@ -10,6 +10,7 @@
import elephant
from ephyviewer import QT

from .. import __version__
from ..datasets import MetadataSelector, LoadAndPrepareData, selector_labels
from ..gui.config import EphyviewerConfigurator

Expand Down Expand Up @@ -112,7 +113,7 @@ def __init__(self, file=None, initial_selection=None, lazy=True, theme='light',

self.setWindowIcon(QT.QIcon(':/soundwave.png'))

self.setWindowTitle('Data Explorer')
self.setWindowTitle('neurotic')
self.resize(600, 300)

# lazy loading using Neo RawIO
Expand Down Expand Up @@ -227,6 +228,12 @@ def create_menus(self):
else:
raise ValueError('theme "{}" is unrecognized'.format(self.theme))

self.help_menu = self.menuBar().addMenu(self.tr('&Help'))

do_show_about = QT.QAction('&About neurotic', self)
do_show_about.triggered.connect(self.show_about)
self.help_menu.addAction(do_show_about)

def open_metadata(self):
"""
Expand Down Expand Up @@ -293,6 +300,37 @@ def launch(self):
print(e)
return

def show_about(self):
"""
Display the "About neurotic" message box
"""

title = 'About neurotic'

urls = {}
urls['GitHub'] = 'https://github.com/jpgill86/neurotic'
urls['GitHub issues'] = 'https://github.com/jpgill86/neurotic/issues'
urls['GitHub user'] = 'https://github.com/jpgill86'
urls['PyPI'] = 'https://pypi.org/project/neurotic'

text = f"""
<h2>neurotic {__version__}</h2>
<p><i>Curate, visualize, and annotate <br/>
your behavioral ephys data using Python</i></p>
<p>Author: Jeffrey Gill (<a href='{urls['GitHub user']}'>@jpgill86</a>)</p>
<p>Websites: <a href='{urls['GitHub']}'>GitHub</a>
| <a href='{urls['PyPI']}'>PyPI</a></p>
<p>Please post any questions, problems, comments, <br/>
or suggestions in the <a href='{urls['GitHub issues']}'>GitHub issue
tracker</a>.</p>
"""

QT.QMessageBox.about(self, title, text)

def toggle_lazy(self, checked):
"""
Expand Down

0 comments on commit 840d640

Please sign in to comment.