Commit c70346de authored by Ed Rogers's avatar Ed Rogers
Browse files

Move start_text to variable

parent b8f6cb73
......@@ -81,7 +81,7 @@ class HearingMplCanvas(FigureCanvas):
def set_bar_heights(bars: matplotlib.container.BarContainer, vals: np.ndarray):
def set_bar_heights(bars: matplotlib.container.BarContainer, vals: np.ndarray) -> None:
for bar, h in zip(bars, vals):
......@@ -124,6 +124,8 @@ class HearingTestThread(QtCore.QThread):
class TestWindow(QMainWindow):
start_text = "Press space to start..."
def __init__(self, library):
self.library = library
self.test = None
......@@ -143,7 +145,7 @@ class TestWindow(QMainWindow):
text_style = "QLabel { background-color: black; color: white; font: 24pt}"
self.title = QLabel("Press space bar to start...", self)
self.title = QLabel(start_text, self)
......@@ -214,7 +216,7 @@ class TestWindow(QMainWindow):
def test_finished(self):
self.test_running = False
self.title.setText("Press any key to start...")
self.log.append("Finished test")
self.log.append("Writing test result to file")
thresholds = self.test.thresholds
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