Commit 207a1188 authored by Yan's avatar Yan
Browse files

Added About dialog to check versions

* About dialog now shows version for easy-check
* Minor fix of DRL export formatting (name without space)
* Set version to 0.0.2 (will now increment on any bigger update)
parent e31b645a
......@@ -76,6 +76,14 @@ def drag_entered(event):
event.accept()
def about(parent):
"""constructs window with "about" info"""
QtWidgets.QMessageBox.information(
parent, "About Prasopes",
"Prasopes Finnigan raw file viewer\n\n"
"Version: 0.0.2 (alpha)")
def main():
# ds for data_set, ms for mass_spec_dataset, chrom for chrom_dataset
ds = dict(chrom_dat=None, masses=None, matrix=None)
......@@ -157,6 +165,8 @@ def main():
drlact.setShortcut(QtCore.Qt.CTRL + QtCore.Qt.Key_D)
drlact.triggered.connect(lambda: drl.main_window(
main_window, ds, filename, drlcache))
aboutact = QtWidgets.QAction("&About Prasopes", None)
aboutact.triggered.connect(lambda: about(main_window))
autozoomy = QtWidgets.QAction(QtGui.QIcon.fromTheme(
"zoom-original"), "Auto Zoom Y", None)
autozoomy.setCheckable(True)
......@@ -176,6 +186,9 @@ def main():
main_window.menuBar().addMenu(tools_menu)
tools_menu.addAction(zceact)
tools_menu.addAction(drlact)
help_menu = QtWidgets.QMenu('&Help', main_window)
main_window.menuBar().addMenu(help_menu)
help_menu.addAction(aboutact)
main_widget = QtWidgets.QWidget(main_window)
main_window.setCentralWidget(main_widget)
......
......@@ -509,7 +509,7 @@ def export_drlspectrum(parent, fn, ds, drls):
for i, table in enumerate([[pnames, pintensities],
[names, intensities]]):
expf = open(exp_f_name[i], 'w')
expf.write("times, {}\n".format((",".join(table[0]))))
expf.write("times,{}\n".format((",".join(table[0]))))
expf.write("timeshift = {}, cutoff = {}\n".format(
drls['tshift'].value(), drls['cutoff'].value()))
for j in range(len(times)):
......
......@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
setup(
name="prasopes",
version="0.0.1",
version="0.0.2",
author="Jan Zelenka",
author_email="3yanyanyan@gmail.com",
description="Thermo/Finnigan .raw file viewer based on rawprasslib",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment