[results] add time stamp
This commit is contained in:
parent
02e2dcb709
commit
1f87caa5ef
@ -25,7 +25,7 @@ class StartScreen(QWidget):
|
||||
layout.setColumnStretch(6, 1)
|
||||
|
||||
layout.setRowStretch(0, 1)
|
||||
layout.setRowStretch(3, 1)
|
||||
layout.setRowStretch(4, 1)
|
||||
self.setLayout(layout)
|
||||
|
||||
label = QLabel("Measure your reaction times!\nselect a task")
|
||||
@ -36,13 +36,13 @@ class StartScreen(QWidget):
|
||||
layout.addWidget(label, 1, 2, 1, 3, Qt.AlignCenter)
|
||||
|
||||
visual_task_label = MyLabel()
|
||||
visual_task_label.setToolTip("Click to start a new visual task")
|
||||
visual_task_label.setToolTip("Click to start a new visual task (Ctrl+1)")
|
||||
visual_task_label.setPixmap(QPixmap(os.path.join(cnst.ICONS_FOLDER, "visual_task_large.png")))
|
||||
visual_task_label.setMaximumWidth(256)
|
||||
visual_task_label.clicked.connect(self.new_visual_task)
|
||||
|
||||
auditory_task_label = MyLabel()
|
||||
auditory_task_label.setToolTip("Click to start a new auditory task")
|
||||
auditory_task_label.setToolTip("Click to start a new auditory task (Ctrl+2)")
|
||||
auditory_task_label.setPixmap(QPixmap(os.path.join(cnst.ICONS_FOLDER, "auditory_task_large.png")))
|
||||
auditory_task_label.setMaximumWidth(256)
|
||||
auditory_task_label.clicked.connect(self.new_auditory_task)
|
||||
|
@ -11,13 +11,21 @@ class MeasurementResults():
|
||||
def append(self, reaction_time):
|
||||
self._reaction_times.append(reaction_time)
|
||||
|
||||
@property
|
||||
def results(self, reaction_times):
|
||||
self._reaction_times = reaction_times
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
return self._task_name
|
||||
|
||||
@property
|
||||
def starttime(self):
|
||||
return str(self._task_timestamp)
|
||||
return self._task_timestamp
|
||||
|
||||
@property
|
||||
def starttime(self, starttime):
|
||||
self._task_timestamp = starttime
|
||||
|
||||
@property
|
||||
def results(self):
|
||||
|
Loading…
Reference in New Issue
Block a user