1
0
Fork 0
mirror of https://github.com/Athemis/PyDSF.git synced 2025-04-05 14:46:03 +00:00

Migrated to PyQT5; Added option to reset data list; Added progress indicator

This commit is contained in:
Alexander Minges 2015-01-30 15:00:16 +01:00
parent 6268862334
commit 926fb01502
7 changed files with 275 additions and 268 deletions

1
.gitignore vendored
View file

@ -21,6 +21,7 @@ var/
*.egg-info/ *.egg-info/
.installed.cfg .installed.cfg
*.egg *.egg
.idea
# PyInstaller # PyInstaller
# Usually these files are written by a python script from a template # Usually these files are written by a python script from a template

View file

@ -1,12 +1,15 @@
#!/usr/bin/env python2 #!/usr/bin/env python2
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from PyQt4 import QtCore, QtGui from PyQt5 import QtWidgets
from ui.mainwindow import MainWindow from ui.mainwindow import MainWindow
if __name__ == "__main__": if __name__ == "__main__":
import sys import sys
app = QtGui.QApplication(sys.argv)
app = QtWidgets.QApplication(sys.argv)
ui = MainWindow() ui = MainWindow()
ui.show() ui.show()
sys.exit(app.exec_()) sys.exit(app.exec_())

View file

@ -1,11 +1,11 @@
#! /usr/bin/env python2 #! /usr/bin/env python2
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import os
import csv import csv
try: try:
import matplotlib as mpl import matplotlib as mpl
mpl.use('Qt4Agg')
mpl.use('Qt5Agg')
import matplotlib.ticker as ticker import matplotlib.ticker as ticker
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import matplotlib.patches as mpatches import matplotlib.patches as mpatches
@ -17,8 +17,6 @@ try:
except ImportError: except ImportError:
raise ImportError('----- PeakUtils must be installed. -----') raise ImportError('----- PeakUtils must be installed. -----')
#from peakdetect import *
try: try:
import numpy as np import numpy as np
except ImportError: except ImportError:
@ -195,7 +193,7 @@ class Experiment:
if color_range: if color_range:
self.color_range = color_range self.color_range = color_range
else: else:
self.color_range = None self.color_range = (self.t1, self.t2)
self.plates = [] self.plates = []

View file

@ -1,209 +1,205 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/home/alex/Dokumente/Programmieren/PyDSF/ui/mainwindow.ui' # Form implementation generated from reading ui file 'mainwindow.ui'
# #
# Created: Tue Oct 30 14:57:02 2012 # Created: Fri Jan 30 14:07:06 2015
# by: PyQt4 UI code generator 4.9.5 # by: PyQt5 UI code generator 5.4
# #
# WARNING! All changes made in this file will be lost! # WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui from PyQt5 import QtCore, QtGui, QtWidgets
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
_fromUtf8 = lambda s: s
class Ui_MainWindow(object): class Ui_MainWindow(object):
def setupUi(self, MainWindow): def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.setObjectName("MainWindow")
MainWindow.resize(352, 548) MainWindow.resize(388, 642)
MainWindow.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates)) MainWindow.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
self.centralWidget = QtGui.QWidget(MainWindow) self.centralWidget = QtWidgets.QWidget(MainWindow)
self.centralWidget.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates)) self.centralWidget.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
self.centralWidget.setObjectName(_fromUtf8("centralWidget")) self.centralWidget.setObjectName("centralWidget")
self.gridLayout_2 = QtGui.QGridLayout(self.centralWidget) self.gridLayout_2 = QtWidgets.QGridLayout(self.centralWidget)
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.gridLayout_2.setObjectName("gridLayout_2")
self.groupBox_experiment = QtGui.QGroupBox(self.centralWidget) self.groupBox_experiment = QtWidgets.QGroupBox(self.centralWidget)
self.groupBox_experiment.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) self.groupBox_experiment.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.groupBox_experiment.setFlat(False) self.groupBox_experiment.setFlat(False)
self.groupBox_experiment.setCheckable(False) self.groupBox_experiment.setCheckable(False)
self.groupBox_experiment.setObjectName(_fromUtf8("groupBox_experiment")) self.groupBox_experiment.setObjectName("groupBox_experiment")
self.gridLayout = QtGui.QGridLayout(self.groupBox_experiment) self.gridLayout = QtWidgets.QGridLayout(self.groupBox_experiment)
self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.gridLayout.setObjectName("gridLayout")
self.label_instrument = QtGui.QLabel(self.groupBox_experiment) self.label_instrument = QtWidgets.QLabel(self.groupBox_experiment)
self.label_instrument.setObjectName(_fromUtf8("label_instrument")) self.label_instrument.setObjectName("label_instrument")
self.gridLayout.addWidget(self.label_instrument, 0, 0, 1, 1) self.gridLayout.addWidget(self.label_instrument, 0, 0, 1, 1)
self.comboBox_instrument = QtGui.QComboBox(self.groupBox_experiment) self.comboBox_instrument = QtWidgets.QComboBox(self.groupBox_experiment)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0) sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0) sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.comboBox_instrument.sizePolicy().hasHeightForWidth()) sizePolicy.setHeightForWidth(self.comboBox_instrument.sizePolicy().hasHeightForWidth())
self.comboBox_instrument.setSizePolicy(sizePolicy) self.comboBox_instrument.setSizePolicy(sizePolicy)
self.comboBox_instrument.setObjectName(_fromUtf8("comboBox_instrument")) self.comboBox_instrument.setObjectName("comboBox_instrument")
self.comboBox_instrument.addItem(_fromUtf8("")) self.comboBox_instrument.addItem("")
self.gridLayout.addWidget(self.comboBox_instrument, 0, 1, 1, 1) self.gridLayout.addWidget(self.comboBox_instrument, 0, 1, 1, 1)
self.groupBox_data = QtGui.QGroupBox(self.groupBox_experiment) self.groupBox_data = QtWidgets.QGroupBox(self.groupBox_experiment)
self.groupBox_data.setEnabled(True) self.groupBox_data.setEnabled(True)
self.groupBox_data.setObjectName(_fromUtf8("groupBox_data")) self.groupBox_data.setObjectName("groupBox_data")
self.gridLayout_4 = QtGui.QGridLayout(self.groupBox_data) self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_data)
self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.gridLayout_4.setObjectName("gridLayout_4")
self.listWidget_data = QtGui.QListWidget(self.groupBox_data) self.groupBox_replicates = QtWidgets.QGroupBox(self.groupBox_data)
self.listWidget_data.setAlternatingRowColors(True) self.groupBox_replicates.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.listWidget_data.setObjectName(_fromUtf8("listWidget_data"))
self.gridLayout_4.addWidget(self.listWidget_data, 0, 0, 1, 1)
self.buttonBox_open = QtGui.QDialogButtonBox(self.groupBox_data)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.buttonBox_open.sizePolicy().hasHeightForWidth())
self.buttonBox_open.setSizePolicy(sizePolicy)
self.buttonBox_open.setLayoutDirection(QtCore.Qt.LeftToRight)
self.buttonBox_open.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox_open.setStandardButtons(QtGui.QDialogButtonBox.Open)
self.buttonBox_open.setCenterButtons(False)
self.buttonBox_open.setObjectName(_fromUtf8("buttonBox_open"))
self.gridLayout_4.addWidget(self.buttonBox_open, 0, 1, 1, 1)
self.groupBox_replicates = QtGui.QGroupBox(self.groupBox_data)
self.groupBox_replicates.setCheckable(True) self.groupBox_replicates.setCheckable(True)
self.groupBox_replicates.setChecked(False) self.groupBox_replicates.setChecked(False)
self.groupBox_replicates.setObjectName(_fromUtf8("groupBox_replicates")) self.groupBox_replicates.setObjectName("groupBox_replicates")
self.gridLayout_3 = QtGui.QGridLayout(self.groupBox_replicates) self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_replicates)
self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.gridLayout_3.setObjectName("gridLayout_3")
self.radioButton_rep_files = QtGui.QRadioButton(self.groupBox_replicates) self.radioButton_rep_files = QtWidgets.QRadioButton(self.groupBox_replicates)
self.radioButton_rep_files.setEnabled(False) self.radioButton_rep_files.setEnabled(False)
self.radioButton_rep_files.setChecked(True) self.radioButton_rep_files.setChecked(True)
self.radioButton_rep_files.setObjectName(_fromUtf8("radioButton_rep_files")) self.radioButton_rep_files.setObjectName("radioButton_rep_files")
self.gridLayout_3.addWidget(self.radioButton_rep_files, 0, 0, 1, 1) self.gridLayout_3.addWidget(self.radioButton_rep_files, 0, 0, 1, 1)
self.gridLayout_4.addWidget(self.groupBox_replicates, 1, 0, 1, 2) self.gridLayout_4.addWidget(self.groupBox_replicates, 2, 0, 1, 2)
self.buttonBox_open_reset = QtWidgets.QDialogButtonBox(self.groupBox_data)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.buttonBox_open_reset.sizePolicy().hasHeightForWidth())
self.buttonBox_open_reset.setSizePolicy(sizePolicy)
self.buttonBox_open_reset.setLayoutDirection(QtCore.Qt.LeftToRight)
self.buttonBox_open_reset.setOrientation(QtCore.Qt.Vertical)
self.buttonBox_open_reset.setStandardButtons(QtWidgets.QDialogButtonBox.Open|QtWidgets.QDialogButtonBox.Reset)
self.buttonBox_open_reset.setCenterButtons(False)
self.buttonBox_open_reset.setObjectName("buttonBox_open_reset")
self.gridLayout_4.addWidget(self.buttonBox_open_reset, 0, 1, 1, 1)
self.listWidget_data = QtWidgets.QListWidget(self.groupBox_data)
self.listWidget_data.setAlternatingRowColors(True)
self.listWidget_data.setObjectName("listWidget_data")
self.gridLayout_4.addWidget(self.listWidget_data, 0, 0, 2, 1)
self.gridLayout.addWidget(self.groupBox_data, 1, 0, 1, 2) self.gridLayout.addWidget(self.groupBox_data, 1, 0, 1, 2)
self.groupBox_temp = QtGui.QGroupBox(self.groupBox_experiment) self.groupBox_temp = QtWidgets.QGroupBox(self.groupBox_experiment)
self.groupBox_temp.setEnabled(True) self.groupBox_temp.setEnabled(True)
self.groupBox_temp.setAutoFillBackground(False) self.groupBox_temp.setAutoFillBackground(False)
self.groupBox_temp.setCheckable(False) self.groupBox_temp.setCheckable(False)
self.groupBox_temp.setObjectName(_fromUtf8("groupBox_temp")) self.groupBox_temp.setObjectName("groupBox_temp")
self.formLayout = QtGui.QFormLayout(self.groupBox_temp) self.formLayout = QtWidgets.QFormLayout(self.groupBox_temp)
self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.ExpandingFieldsGrow) self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.ExpandingFieldsGrow)
self.formLayout.setLabelAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.formLayout.setLabelAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.formLayout.setFormAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignTop) self.formLayout.setFormAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignTop)
self.formLayout.setObjectName(_fromUtf8("formLayout")) self.formLayout.setObjectName("formLayout")
self.label_tmin = QtGui.QLabel(self.groupBox_temp) self.label_tmin = QtWidgets.QLabel(self.groupBox_temp)
self.label_tmin.setObjectName(_fromUtf8("label_tmin")) self.label_tmin.setObjectName("label_tmin")
self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_tmin) self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_tmin)
self.doubleSpinBox_tmin = QtGui.QDoubleSpinBox(self.groupBox_temp) self.doubleSpinBox_tmin = QtWidgets.QDoubleSpinBox(self.groupBox_temp)
self.doubleSpinBox_tmin.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) self.doubleSpinBox_tmin.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.doubleSpinBox_tmin.setDecimals(1) self.doubleSpinBox_tmin.setDecimals(1)
self.doubleSpinBox_tmin.setProperty("value", 25.0) self.doubleSpinBox_tmin.setProperty("value", 20.0)
self.doubleSpinBox_tmin.setObjectName(_fromUtf8("doubleSpinBox_tmin")) self.doubleSpinBox_tmin.setObjectName("doubleSpinBox_tmin")
self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.doubleSpinBox_tmin) self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.doubleSpinBox_tmin)
self.label_tmax = QtGui.QLabel(self.groupBox_temp) self.label_tmax = QtWidgets.QLabel(self.groupBox_temp)
self.label_tmax.setObjectName(_fromUtf8("label_tmax")) self.label_tmax.setObjectName("label_tmax")
self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_tmax) self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_tmax)
self.doubleSpinBox_tmax = QtGui.QDoubleSpinBox(self.groupBox_temp) self.doubleSpinBox_tmax = QtWidgets.QDoubleSpinBox(self.groupBox_temp)
self.doubleSpinBox_tmax.setDecimals(1) self.doubleSpinBox_tmax.setDecimals(1)
self.doubleSpinBox_tmax.setProperty("value", 95.0) self.doubleSpinBox_tmax.setProperty("value", 95.0)
self.doubleSpinBox_tmax.setObjectName(_fromUtf8("doubleSpinBox_tmax")) self.doubleSpinBox_tmax.setObjectName("doubleSpinBox_tmax")
self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.doubleSpinBox_tmax) self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.doubleSpinBox_tmax)
self.label_dt = QtGui.QLabel(self.groupBox_temp) self.label_dt = QtWidgets.QLabel(self.groupBox_temp)
self.label_dt.setObjectName(_fromUtf8("label_dt")) self.label_dt.setObjectName("label_dt")
self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_dt) self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_dt)
self.doubleSpinBox_dt = QtGui.QDoubleSpinBox(self.groupBox_temp) self.doubleSpinBox_dt = QtWidgets.QDoubleSpinBox(self.groupBox_temp)
self.doubleSpinBox_dt.setDecimals(1) self.doubleSpinBox_dt.setDecimals(1)
self.doubleSpinBox_dt.setProperty("value", 1.0) self.doubleSpinBox_dt.setProperty("value", 1.0)
self.doubleSpinBox_dt.setObjectName(_fromUtf8("doubleSpinBox_dt")) self.doubleSpinBox_dt.setObjectName("doubleSpinBox_dt")
self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.doubleSpinBox_dt) self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.doubleSpinBox_dt)
self.gridLayout.addWidget(self.groupBox_temp, 2, 0, 1, 1) self.gridLayout.addWidget(self.groupBox_temp, 2, 0, 1, 1)
self.groupBox_cutoff = QtGui.QGroupBox(self.groupBox_experiment) self.groupBox_cutoff = QtWidgets.QGroupBox(self.groupBox_experiment)
self.groupBox_cutoff.setEnabled(True) self.groupBox_cutoff.setEnabled(True)
self.groupBox_cutoff.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) self.groupBox_cutoff.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.groupBox_cutoff.setCheckable(True) self.groupBox_cutoff.setCheckable(True)
self.groupBox_cutoff.setChecked(False) self.groupBox_cutoff.setChecked(False)
self.groupBox_cutoff.setObjectName(_fromUtf8("groupBox_cutoff")) self.groupBox_cutoff.setObjectName("groupBox_cutoff")
self.formLayout_2 = QtGui.QFormLayout(self.groupBox_cutoff) self.formLayout_2 = QtWidgets.QFormLayout(self.groupBox_cutoff)
self.formLayout_2.setFieldGrowthPolicy(QtGui.QFormLayout.ExpandingFieldsGrow) self.formLayout_2.setFieldGrowthPolicy(QtWidgets.QFormLayout.ExpandingFieldsGrow)
self.formLayout_2.setLabelAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.formLayout_2.setLabelAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.formLayout_2.setFormAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) self.formLayout_2.setFormAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
self.formLayout_2.setObjectName(_fromUtf8("formLayout_2")) self.formLayout_2.setObjectName("formLayout_2")
self.label_cutoff_high = QtGui.QLabel(self.groupBox_cutoff) self.label_cutoff_high = QtWidgets.QLabel(self.groupBox_cutoff)
self.label_cutoff_high.setObjectName(_fromUtf8("label_cutoff_high")) self.label_cutoff_high.setObjectName("label_cutoff_high")
self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_cutoff_high) self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_cutoff_high)
self.doubleSpinBox_upper = QtGui.QDoubleSpinBox(self.groupBox_cutoff) self.doubleSpinBox_upper = QtWidgets.QDoubleSpinBox(self.groupBox_cutoff)
self.doubleSpinBox_upper.setPrefix(_fromUtf8("")) self.doubleSpinBox_upper.setPrefix("")
self.doubleSpinBox_upper.setDecimals(1) self.doubleSpinBox_upper.setDecimals(1)
self.doubleSpinBox_upper.setObjectName(_fromUtf8("doubleSpinBox_upper")) self.doubleSpinBox_upper.setObjectName("doubleSpinBox_upper")
self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole, self.doubleSpinBox_upper) self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.doubleSpinBox_upper)
self.label_cutoff_low = QtGui.QLabel(self.groupBox_cutoff) self.label_cutoff_low = QtWidgets.QLabel(self.groupBox_cutoff)
self.label_cutoff_low.setObjectName(_fromUtf8("label_cutoff_low")) self.label_cutoff_low.setObjectName("label_cutoff_low")
self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_cutoff_low) self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_cutoff_low)
self.doubleSpinBox_lower = QtGui.QDoubleSpinBox(self.groupBox_cutoff) self.doubleSpinBox_lower = QtWidgets.QDoubleSpinBox(self.groupBox_cutoff)
self.doubleSpinBox_lower.setDecimals(1) self.doubleSpinBox_lower.setDecimals(1)
self.doubleSpinBox_lower.setObjectName(_fromUtf8("doubleSpinBox_lower")) self.doubleSpinBox_lower.setObjectName("doubleSpinBox_lower")
self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole, self.doubleSpinBox_lower) self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.doubleSpinBox_lower)
self.gridLayout.addWidget(self.groupBox_cutoff, 2, 1, 1, 1) self.gridLayout.addWidget(self.groupBox_cutoff, 2, 1, 1, 1)
self.groupBox_signal_threshold = QtGui.QGroupBox(self.groupBox_experiment) self.groupBox_signal_threshold = QtWidgets.QGroupBox(self.groupBox_experiment)
self.groupBox_signal_threshold.setEnabled(True) self.groupBox_signal_threshold.setEnabled(True)
self.groupBox_signal_threshold.setCheckable(True) self.groupBox_signal_threshold.setCheckable(True)
self.groupBox_signal_threshold.setChecked(False) self.groupBox_signal_threshold.setChecked(False)
self.groupBox_signal_threshold.setObjectName(_fromUtf8("groupBox_signal_threshold")) self.groupBox_signal_threshold.setObjectName("groupBox_signal_threshold")
self.verticalLayout = QtGui.QVBoxLayout(self.groupBox_signal_threshold) self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox_signal_threshold)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.verticalLayout.setObjectName("verticalLayout")
self.spinBox_signal_threshold = QtGui.QSpinBox(self.groupBox_signal_threshold) self.spinBox_signal_threshold = QtWidgets.QSpinBox(self.groupBox_signal_threshold)
self.spinBox_signal_threshold.setMaximum(1000000) self.spinBox_signal_threshold.setMaximum(1000000)
self.spinBox_signal_threshold.setObjectName(_fromUtf8("spinBox_signal_threshold")) self.spinBox_signal_threshold.setObjectName("spinBox_signal_threshold")
self.verticalLayout.addWidget(self.spinBox_signal_threshold) self.verticalLayout.addWidget(self.spinBox_signal_threshold)
self.gridLayout.addWidget(self.groupBox_signal_threshold, 3, 0, 1, 1) self.gridLayout.addWidget(self.groupBox_signal_threshold, 3, 0, 1, 1)
self.groupBox_cbar = QtGui.QGroupBox(self.groupBox_experiment) self.groupBox_cbar = QtWidgets.QGroupBox(self.groupBox_experiment)
self.groupBox_cbar.setEnabled(True) self.groupBox_cbar.setEnabled(True)
self.groupBox_cbar.setCheckable(True) self.groupBox_cbar.setCheckable(True)
self.groupBox_cbar.setChecked(False) self.groupBox_cbar.setChecked(False)
self.groupBox_cbar.setObjectName(_fromUtf8("groupBox_cbar")) self.groupBox_cbar.setObjectName("groupBox_cbar")
self.formLayout_4 = QtGui.QFormLayout(self.groupBox_cbar) self.formLayout_4 = QtWidgets.QFormLayout(self.groupBox_cbar)
self.formLayout_4.setFieldGrowthPolicy(QtGui.QFormLayout.ExpandingFieldsGrow) self.formLayout_4.setFieldGrowthPolicy(QtWidgets.QFormLayout.ExpandingFieldsGrow)
self.formLayout_4.setObjectName(_fromUtf8("formLayout_4")) self.formLayout_4.setObjectName("formLayout_4")
self.label_cbar_start = QtGui.QLabel(self.groupBox_cbar) self.label_cbar_start = QtWidgets.QLabel(self.groupBox_cbar)
self.label_cbar_start.setObjectName(_fromUtf8("label_cbar_start")) self.label_cbar_start.setObjectName("label_cbar_start")
self.formLayout_4.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_cbar_start) self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_cbar_start)
self.doubleSpinBox_cbar_start = QtGui.QDoubleSpinBox(self.groupBox_cbar) self.doubleSpinBox_cbar_start = QtWidgets.QDoubleSpinBox(self.groupBox_cbar)
self.doubleSpinBox_cbar_start.setDecimals(1) self.doubleSpinBox_cbar_start.setDecimals(1)
self.doubleSpinBox_cbar_start.setObjectName(_fromUtf8("doubleSpinBox_cbar_start")) self.doubleSpinBox_cbar_start.setObjectName("doubleSpinBox_cbar_start")
self.formLayout_4.setWidget(0, QtGui.QFormLayout.FieldRole, self.doubleSpinBox_cbar_start) self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.doubleSpinBox_cbar_start)
self.label_cbar_end = QtGui.QLabel(self.groupBox_cbar) self.label_cbar_end = QtWidgets.QLabel(self.groupBox_cbar)
self.label_cbar_end.setObjectName(_fromUtf8("label_cbar_end")) self.label_cbar_end.setObjectName("label_cbar_end")
self.formLayout_4.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_cbar_end) self.formLayout_4.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_cbar_end)
self.doubleSpinBox_cbar_end = QtGui.QDoubleSpinBox(self.groupBox_cbar) self.doubleSpinBox_cbar_end = QtWidgets.QDoubleSpinBox(self.groupBox_cbar)
self.doubleSpinBox_cbar_end.setDecimals(1) self.doubleSpinBox_cbar_end.setDecimals(1)
self.doubleSpinBox_cbar_end.setObjectName(_fromUtf8("doubleSpinBox_cbar_end")) self.doubleSpinBox_cbar_end.setObjectName("doubleSpinBox_cbar_end")
self.formLayout_4.setWidget(2, QtGui.QFormLayout.FieldRole, self.doubleSpinBox_cbar_end) self.formLayout_4.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.doubleSpinBox_cbar_end)
self.gridLayout.addWidget(self.groupBox_cbar, 3, 1, 1, 1) self.gridLayout.addWidget(self.groupBox_cbar, 3, 1, 1, 1)
self.gridLayout_2.addWidget(self.groupBox_experiment, 0, 0, 1, 1) self.gridLayout_2.addWidget(self.groupBox_experiment, 0, 0, 1, 1)
self.buttonBox_process = QtGui.QDialogButtonBox(self.centralWidget) self.buttonBox_process = QtWidgets.QDialogButtonBox(self.centralWidget)
self.buttonBox_process.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.buttonBox_process.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
self.buttonBox_process.setObjectName(_fromUtf8("buttonBox_process")) self.buttonBox_process.setObjectName("buttonBox_process")
self.gridLayout_2.addWidget(self.buttonBox_process, 1, 0, 1, 1) self.gridLayout_2.addWidget(self.buttonBox_process, 1, 0, 1, 1)
MainWindow.setCentralWidget(self.centralWidget) MainWindow.setCentralWidget(self.centralWidget)
self.menuBar = QtGui.QMenuBar(MainWindow) self.menuBar = QtWidgets.QMenuBar(MainWindow)
self.menuBar.setGeometry(QtCore.QRect(0, 0, 352, 24)) self.menuBar.setGeometry(QtCore.QRect(0, 0, 388, 29))
self.menuBar.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates)) self.menuBar.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
self.menuBar.setObjectName(_fromUtf8("menuBar")) self.menuBar.setObjectName("menuBar")
self.menuFile = QtGui.QMenu(self.menuBar) self.menuFile = QtWidgets.QMenu(self.menuBar)
self.menuFile.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates)) self.menuFile.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
self.menuFile.setObjectName(_fromUtf8("menuFile")) self.menuFile.setObjectName("menuFile")
self.menuHelp = QtGui.QMenu(self.menuBar) self.menuHelp = QtWidgets.QMenu(self.menuBar)
self.menuHelp.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates)) self.menuHelp.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
self.menuHelp.setObjectName(_fromUtf8("menuHelp")) self.menuHelp.setObjectName("menuHelp")
MainWindow.setMenuBar(self.menuBar) MainWindow.setMenuBar(self.menuBar)
self.statusBar = QtGui.QStatusBar(MainWindow) self.statusBar = QtWidgets.QStatusBar(MainWindow)
self.statusBar.setObjectName(_fromUtf8("statusBar")) self.statusBar.setObjectName("statusBar")
MainWindow.setStatusBar(self.statusBar) MainWindow.setStatusBar(self.statusBar)
self.actionQuit = QtGui.QAction(MainWindow) self.actionQuit = QtWidgets.QAction(MainWindow)
self.actionQuit.setObjectName(_fromUtf8("actionQuit")) self.actionQuit.setObjectName("actionQuit")
self.actionAbout = QtGui.QAction(MainWindow) self.actionAbout = QtWidgets.QAction(MainWindow)
self.actionAbout.setObjectName(_fromUtf8("actionAbout")) self.actionAbout.setObjectName("actionAbout")
self.actionAbout_Qt = QtGui.QAction(MainWindow) self.actionAbout_Qt = QtWidgets.QAction(MainWindow)
icon = QtGui.QIcon() icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/qtlogo.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off) icon.addPixmap(QtGui.QPixmap(":/qtlogo.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionAbout_Qt.setIcon(icon) self.actionAbout_Qt.setIcon(icon)
self.actionAbout_Qt.setObjectName(_fromUtf8("actionAbout_Qt")) self.actionAbout_Qt.setObjectName("actionAbout_Qt")
self.menuFile.addAction(self.actionQuit) self.menuFile.addAction(self.actionQuit)
self.menuHelp.addAction(self.actionAbout) self.menuHelp.addAction(self.actionAbout)
self.menuHelp.addAction(self.actionAbout_Qt) self.menuHelp.addAction(self.actionAbout_Qt)
@ -222,50 +218,39 @@ class Ui_MainWindow(object):
QtCore.QMetaObject.connectSlotsByName(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow): def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "PyDSF", None, QtGui.QApplication.UnicodeUTF8)) _translate = QtCore.QCoreApplication.translate
self.groupBox_experiment.setTitle(QtGui.QApplication.translate("MainWindow", "Experimental Setup", None, QtGui.QApplication.UnicodeUTF8)) MainWindow.setWindowTitle(_translate("MainWindow", "PyDSF"))
self.label_instrument.setText(QtGui.QApplication.translate("MainWindow", "Instrument", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox_experiment.setTitle(_translate("MainWindow", "Experimental Setup"))
self.comboBox_instrument.setItemText(0, QtGui.QApplication.translate("MainWindow", "Analytik Jena qTOWER 2.0/2.2", None, QtGui.QApplication.UnicodeUTF8)) self.label_instrument.setText(_translate("MainWindow", "Instrument"))
self.groupBox_data.setToolTip(QtGui.QApplication.translate("MainWindow", "<html><head/><body><p>Add data files to the experiment. If multiple files are loaded, they are treated as replicates.</p></body></html>", None, QtGui.QApplication.UnicodeUTF8)) self.comboBox_instrument.setItemText(0, _translate("MainWindow", "Analytik Jena qTOWER 2.0/2.2"))
self.groupBox_data.setTitle(QtGui.QApplication.translate("MainWindow", "Data File", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox_data.setToolTip(_translate("MainWindow", "<html><head/><body><p>Add data files to the experiment. If multiple files are loaded, they are treated as replicates.</p></body></html>"))
self.groupBox_replicates.setTitle(QtGui.QApplication.translate("MainWindow", "Replicates", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox_data.setTitle(_translate("MainWindow", "Data File"))
self.radioButton_rep_files.setText(QtGui.QApplication.translate("MainWindow", "Files", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox_replicates.setTitle(_translate("MainWindow", "Replicates"))
self.groupBox_temp.setToolTip(QtGui.QApplication.translate("MainWindow", "<html><head/><body><p>Temperature range of the data points. Only applies, if the data file does not contain any temperature information.</p></body></html>", None, QtGui.QApplication.UnicodeUTF8)) self.radioButton_rep_files.setText(_translate("MainWindow", "Files"))
self.groupBox_temp.setTitle(QtGui.QApplication.translate("MainWindow", "Temperature settings", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox_temp.setToolTip(_translate("MainWindow", "<html><head/><body><p>Temperature range of the data points. Only applies, if the data file does not contain any temperature information.</p></body></html>"))
self.label_tmin.setText(QtGui.QApplication.translate("MainWindow", "<html><head/><body><p>T<span style=\" vertical-align:sub;\">min</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox_temp.setTitle(_translate("MainWindow", "Temperature settings"))
self.doubleSpinBox_tmin.setSuffix(QtGui.QApplication.translate("MainWindow", " °C", None, QtGui.QApplication.UnicodeUTF8)) self.label_tmin.setText(_translate("MainWindow", "<html><head/><body><p>T<span style=\" vertical-align:sub;\">min</span></p></body></html>"))
self.label_tmax.setText(QtGui.QApplication.translate("MainWindow", "<html><head/><body><p>T<span style=\" vertical-align:sub;\">max</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8)) self.doubleSpinBox_tmin.setSuffix(_translate("MainWindow", " °C"))
self.doubleSpinBox_tmax.setSuffix(QtGui.QApplication.translate("MainWindow", " °C", None, QtGui.QApplication.UnicodeUTF8)) self.label_tmax.setText(_translate("MainWindow", "<html><head/><body><p>T<span style=\" vertical-align:sub;\">max</span></p></body></html>"))
self.label_dt.setText(QtGui.QApplication.translate("MainWindow", "<html><head/><body><p>&Delta;T</p></body></html>", None, QtGui.QApplication.UnicodeUTF8)) self.doubleSpinBox_tmax.setSuffix(_translate("MainWindow", " °C"))
self.doubleSpinBox_dt.setSuffix(QtGui.QApplication.translate("MainWindow", " °C", None, QtGui.QApplication.UnicodeUTF8)) self.label_dt.setText(_translate("MainWindow", "<html><head/><body><p>&Delta;T</p></body></html>"))
self.groupBox_cutoff.setToolTip(QtGui.QApplication.translate("MainWindow", "<html><head/><body><p>Only T<span style=\" vertical-align:sub;\">m</span> values within this limit are considered valid.</p></body></html>", None, QtGui.QApplication.UnicodeUTF8)) self.doubleSpinBox_dt.setSuffix(_translate("MainWindow", " °C"))
self.groupBox_cutoff.setTitle(QtGui.QApplication.translate("MainWindow", "Cutoff", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox_cutoff.setToolTip(_translate("MainWindow", "<html><head/><body><p>Only T<span style=\" vertical-align:sub;\">m</span> values within this limit are considered valid.</p></body></html>"))
self.label_cutoff_high.setText(QtGui.QApplication.translate("MainWindow", "Upper", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox_cutoff.setTitle(_translate("MainWindow", "Cutoff"))
self.doubleSpinBox_upper.setSuffix(QtGui.QApplication.translate("MainWindow", " °C", None, QtGui.QApplication.UnicodeUTF8)) self.label_cutoff_high.setText(_translate("MainWindow", "&Upper"))
self.label_cutoff_low.setText(QtGui.QApplication.translate("MainWindow", "Lower", None, QtGui.QApplication.UnicodeUTF8)) self.doubleSpinBox_upper.setSuffix(_translate("MainWindow", " °C"))
self.doubleSpinBox_lower.setSuffix(QtGui.QApplication.translate("MainWindow", " °C", None, QtGui.QApplication.UnicodeUTF8)) self.label_cutoff_low.setText(_translate("MainWindow", "Lower"))
self.groupBox_signal_threshold.setToolTip(QtGui.QApplication.translate("MainWindow", "<html><head/><body><p>If the signal exceeds this threshold, the coresponding well is assumed to be denatured.</p></body></html>", None, QtGui.QApplication.UnicodeUTF8)) self.doubleSpinBox_lower.setSuffix(_translate("MainWindow", " °C"))
self.groupBox_signal_threshold.setTitle(QtGui.QApplication.translate("MainWindow", "Signal Threshold", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox_signal_threshold.setToolTip(_translate("MainWindow", "<html><head/><body><p>If the signal exceeds this threshold, the coresponding well is assumed to be denatured.</p></body></html>"))
self.groupBox_cbar.setToolTip(QtGui.QApplication.translate("MainWindow", "<html><head/><body><p>Defines the range of the colorbar used for the T<span style=\" vertical-align:sub;\">m</span> heatmap.</p></body></html>", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox_signal_threshold.setTitle(_translate("MainWindow", "Si&gnal Threshold"))
self.groupBox_cbar.setTitle(QtGui.QApplication.translate("MainWindow", "Colorbar", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox_cbar.setToolTip(_translate("MainWindow", "<html><head/><body><p>Defines the range of the colorbar used for the T<span style=\" vertical-align:sub;\">m</span> heatmap.</p></body></html>"))
self.label_cbar_start.setText(QtGui.QApplication.translate("MainWindow", "Start", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox_cbar.setTitle(_translate("MainWindow", "Colorbar"))
self.doubleSpinBox_cbar_start.setSuffix(QtGui.QApplication.translate("MainWindow", " °C", None, QtGui.QApplication.UnicodeUTF8)) self.label_cbar_start.setText(_translate("MainWindow", "Start"))
self.label_cbar_end.setText(QtGui.QApplication.translate("MainWindow", "End", None, QtGui.QApplication.UnicodeUTF8)) self.doubleSpinBox_cbar_start.setSuffix(_translate("MainWindow", " °C"))
self.doubleSpinBox_cbar_end.setSuffix(QtGui.QApplication.translate("MainWindow", " °C", None, QtGui.QApplication.UnicodeUTF8)) self.label_cbar_end.setText(_translate("MainWindow", "En&d"))
self.menuFile.setTitle(QtGui.QApplication.translate("MainWindow", "File", None, QtGui.QApplication.UnicodeUTF8)) self.doubleSpinBox_cbar_end.setSuffix(_translate("MainWindow", " °C"))
self.menuHelp.setTitle(QtGui.QApplication.translate("MainWindow", "Help", None, QtGui.QApplication.UnicodeUTF8)) self.menuFile.setTitle(_translate("MainWindow", "Fi&le"))
self.actionQuit.setText(QtGui.QApplication.translate("MainWindow", "Quit", None, QtGui.QApplication.UnicodeUTF8)) self.menuHelp.setTitle(_translate("MainWindow", "Help"))
self.actionAbout.setText(QtGui.QApplication.translate("MainWindow", "About", None, QtGui.QApplication.UnicodeUTF8)) self.actionQuit.setText(_translate("MainWindow", "&Quit"))
self.actionAbout_Qt.setText(QtGui.QApplication.translate("MainWindow", "About Qt", None, QtGui.QApplication.UnicodeUTF8)) self.actionAbout.setText(_translate("MainWindow", "&About"))
self.actionAbout_Qt.setText(_translate("MainWindow", "About &Qt"))
#import icons_rc
if __name__ == "__main__":
import sys
app = QtGui.QApplication(sys.argv)
MainWindow = QtGui.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())

View file

@ -7,7 +7,7 @@
# #
# WARNING! All changes made in this file will be lost! # WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore from PyQt5 import QtCore
qt_resource_data = "\ qt_resource_data = "\
\x00\x00\x17\x6d\ \x00\x00\x17\x6d\

View file

@ -6,12 +6,13 @@ Module implementing MainWindow.
VERSION = "1.0" VERSION = "1.0"
from PyQt4.QtCore import pyqtSignature from PyQt5.QtCore import pyqtSlot
from PyQt4.QtGui import QMainWindow, QMessageBox, QFileDialog, QApplication, QProgressBar from PyQt5.QtWidgets import *
from .Ui_mainwindow import Ui_MainWindow from .Ui_mainwindow import Ui_MainWindow
from pydsf import * from pydsf import *
class MainWindow(QMainWindow, Ui_MainWindow): class MainWindow(QMainWindow, Ui_MainWindow):
""" """
Class documentation goes here. Class documentation goes here.
@ -24,23 +25,33 @@ class MainWindow(QMainWindow, Ui_MainWindow):
""" """
QMainWindow.__init__(self, parent) QMainWindow.__init__(self, parent)
self.setupUi(self) self.setupUi(self)
self.progressBar = QProgressBar()
self.progressBar.setMaximum(0)
self.progressBar.setMaximum(0)
self.progressBar.setEnabled(False)
self.statusBar.addPermanentWidget(self.progressBar)
self.statusBar.showMessage("Welcome to PyDSF")
@pyqtSignature("QAbstractButton*") @pyqtSlot("QAbstractButton*")
def on_buttonBox_open_clicked(self, button): def on_buttonBox_open_reset_clicked(self, button):
""" """
Slot documentation goes here. Slot documentation goes here.
""" """
filenames = QFileDialog.getOpenFileNames(self, 'Open data file', '', "Text files (*.txt *.csv)") if button == self.buttonBox_open_reset.button(QDialogButtonBox.Open):
self.listWidget_data.addItems(filenames) filenames, filter = QFileDialog.getOpenFileNames(self, 'Open data file', '', "Text files (*.txt *.csv)")
if self.listWidget_data.count() > 1: self.listWidget_data.addItems(filenames)
self.groupBox_replicates.setChecked(True) if self.listWidget_data.count() > 1:
self.radioButton_rep_files.setEnabled(True) self.groupBox_replicates.setChecked(True)
self.radioButton_rep_files.setEnabled(True)
elif button == self.buttonBox_open_reset.button(QDialogButtonBox.Reset):
self.listWidget_data.clear()
print("Data cleared")
# self.radioButton_rep_rows.setEnabled(False) # self.radioButton_rep_rows.setEnabled(False)
# self.radioButton_rep_columns.setEnabled(False) # self.radioButton_rep_columns.setEnabled(False)
@pyqtSignature("QString") @pyqtSlot("QString")
def on_comboBox_instrument_currentIndexChanged(self, p0): def on_comboBox_instrument_currentIndexChanged(self, p0):
""" """
Slot documentation goes here. Slot documentation goes here.
@ -55,18 +66,21 @@ class MainWindow(QMainWindow, Ui_MainWindow):
# self.groupBox_cbar.setEnabled(True) # self.groupBox_cbar.setEnabled(True)
# self.groupBox_signal_threshold.setEnabled(True) # self.groupBox_signal_threshold.setEnabled(True)
@pyqtSignature("") @pyqtSlot()
def on_buttonBox_process_accepted(self): def on_buttonBox_process_accepted(self):
""" """
Slot documentation goes here. Slot documentation goes here.
""" """
if self.listWidget_data.count() < 1: if self.listWidget_data.count() < 1:
QMessageBox.critical(self, 'Error', "No data file loaded!", QMessageBox.Close, QMessageBox.Close) QMessageBox.critical(self, 'Error', "No data file loaded!", QMessageBox.Close, QMessageBox.Close)
return return
if self.spinBox_signal_threshold.value() == 0 and self.groupBox_signal_threshold.isChecked(): if self.spinBox_signal_threshold.value() == 0 and self.groupBox_signal_threshold.isChecked():
QMessageBox.warning(self, 'Warning', "Signal threshold is currently set to zero.", QMessageBox.Ok, QMessageBox.Ok) QMessageBox.warning(self, 'Warning', "Signal threshold is currently set to zero.", QMessageBox.Ok, QMessageBox.Ok)
self.pb = QProgressBar() self.progressBar.setEnabled(True)
self.statusBar.showMessage("Processing...")
c_lower = None c_lower = None
c_upper = None c_upper = None
cbar_range = None cbar_range = None
@ -109,22 +123,25 @@ class MainWindow(QMainWindow, Ui_MainWindow):
plot(exp) plot(exp)
self.progressBar.setEnabled(False)
self.statusBar.showMessage("Finished!")
@pyqtSignature("")
@pyqtSlot()
def on_buttonBox_process_rejected(self): def on_buttonBox_process_rejected(self):
""" """
Slot documentation goes here. Slot documentation goes here.
""" """
QApplication.quit() QApplication.quit()
@pyqtSignature("") pyqtSlot()
def on_actionQuit_triggered(self): def on_actionQuit_triggered(self):
""" """
Slot documentation goes here. Slot documentation goes here.
""" """
QApplication.quit() QApplication.quit()
@pyqtSignature("bool") @pyqtSlot("bool")
def on_groupBox_cutoff_toggled(self, p0): def on_groupBox_cutoff_toggled(self, p0):
""" """
Slot documentation goes here. Slot documentation goes here.
@ -132,7 +149,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
self.doubleSpinBox_upper.setValue(self.doubleSpinBox_tmax.value()) self.doubleSpinBox_upper.setValue(self.doubleSpinBox_tmax.value())
self.doubleSpinBox_lower.setValue(self.doubleSpinBox_tmin.value()) self.doubleSpinBox_lower.setValue(self.doubleSpinBox_tmin.value())
@pyqtSignature("") @pyqtSlot()
def on_actionAbout_triggered(self): def on_actionAbout_triggered(self):
""" """
Slot documentation goes here. Slot documentation goes here.
@ -140,7 +157,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
# TODO: not implemented yet # TODO: not implemented yet
raise NotImplementedError raise NotImplementedError
@pyqtSignature("") @pyqtSlot()
def on_actionAbout_Qt_triggered(self): def on_actionAbout_Qt_triggered(self):
""" """
Slot documentation goes here. Slot documentation goes here.

View file

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>352</width> <width>388</width>
<height>548</height> <height>642</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -73,40 +73,14 @@
<string>Data File</string> <string>Data File</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout_4"> <layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0"> <item row="2" column="0" colspan="2">
<widget class="QListWidget" name="listWidget_data">
<property name="alternatingRowColors">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QDialogButtonBox" name="buttonBox_open">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Open</set>
</property>
<property name="centerButtons">
<bool>false</bool>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QGroupBox" name="groupBox_replicates"> <widget class="QGroupBox" name="groupBox_replicates">
<property name="title"> <property name="title">
<string>Replicates</string> <string>Replicates</string>
</property> </property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="checkable"> <property name="checkable">
<bool>true</bool> <bool>true</bool>
</property> </property>
@ -130,6 +104,35 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="0" column="1">
<widget class="QDialogButtonBox" name="buttonBox_open_reset">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Open|QDialogButtonBox::Reset</set>
</property>
<property name="centerButtons">
<bool>false</bool>
</property>
</widget>
</item>
<item row="0" column="0" rowspan="2">
<widget class="QListWidget" name="listWidget_data">
<property name="alternatingRowColors">
<bool>true</bool>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
@ -182,7 +185,7 @@
<number>1</number> <number>1</number>
</property> </property>
<property name="value"> <property name="value">
<double>25.000000000000000</double> <double>20.000000000000000</double>
</property> </property>
</widget> </widget>
</item> </item>
@ -268,7 +271,7 @@
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="label_cutoff_high"> <widget class="QLabel" name="label_cutoff_high">
<property name="text"> <property name="text">
<string>Upper</string> <string>&amp;Upper</string>
</property> </property>
<property name="buddy"> <property name="buddy">
<cstring>doubleSpinBox_upper</cstring> <cstring>doubleSpinBox_upper</cstring>
@ -320,7 +323,7 @@
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;If the signal exceeds this threshold, the coresponding well is assumed to be denatured.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;If the signal exceeds this threshold, the coresponding well is assumed to be denatured.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
<property name="title"> <property name="title">
<string>Signal Threshold</string> <string>Si&amp;gnal Threshold</string>
</property> </property>
<property name="checkable"> <property name="checkable">
<bool>true</bool> <bool>true</bool>
@ -383,7 +386,7 @@
<item row="2" column="0"> <item row="2" column="0">
<widget class="QLabel" name="label_cbar_end"> <widget class="QLabel" name="label_cbar_end">
<property name="text"> <property name="text">
<string>End</string> <string>En&amp;d</string>
</property> </property>
<property name="buddy"> <property name="buddy">
<cstring>doubleSpinBox_cbar_end</cstring> <cstring>doubleSpinBox_cbar_end</cstring>
@ -420,8 +423,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>352</width> <width>388</width>
<height>24</height> <height>29</height>
</rect> </rect>
</property> </property>
<property name="locale"> <property name="locale">
@ -432,7 +435,7 @@
<locale language="English" country="UnitedStates"/> <locale language="English" country="UnitedStates"/>
</property> </property>
<property name="title"> <property name="title">
<string>File</string> <string>Fi&amp;le</string>
</property> </property>
<addaction name="actionQuit"/> <addaction name="actionQuit"/>
</widget> </widget>
@ -452,12 +455,12 @@
<widget class="QStatusBar" name="statusBar"/> <widget class="QStatusBar" name="statusBar"/>
<action name="actionQuit"> <action name="actionQuit">
<property name="text"> <property name="text">
<string>Quit</string> <string>&amp;Quit</string>
</property> </property>
</action> </action>
<action name="actionAbout"> <action name="actionAbout">
<property name="text"> <property name="text">
<string>About</string> <string>&amp;About</string>
</property> </property>
</action> </action>
<action name="actionAbout_Qt"> <action name="actionAbout_Qt">
@ -466,7 +469,7 @@
<normaloff>:/qtlogo.svg</normaloff>:/qtlogo.svg</iconset> <normaloff>:/qtlogo.svg</normaloff>:/qtlogo.svg</iconset>
</property> </property>
<property name="text"> <property name="text">
<string>About Qt</string> <string>About &amp;Qt</string>
</property> </property>
</action> </action>
</widget> </widget>