Commit 33549d09 authored by Ed Rogers's avatar Ed Rogers
Browse files

Set text label on rnning test and clear log.

parent b1a0a2af
...@@ -113,6 +113,8 @@ class HelloWindow(QMainWindow): ...@@ -113,6 +113,8 @@ class HelloWindow(QMainWindow):
self.log.append('Key {} pressed at {}'.format(event.key(), time.clock())) self.log.append('Key {} pressed at {}'.format(event.key(), time.clock()))
def run_test(self): def run_test(self):
self.log.setText('')
self.title.setText('Test running')
self.log.append('Starting...') self.log.append('Starting...')
self.testing_thread = TestThread(self.library) self.testing_thread = TestThread(self.library)
self.testing_thread.played_sound.connect(self.sound_played) self.testing_thread.played_sound.connect(self.sound_played)
...@@ -125,6 +127,7 @@ class HelloWindow(QMainWindow): ...@@ -125,6 +127,7 @@ class HelloWindow(QMainWindow):
def test_finished(self): def test_finished(self):
self.test_running = False self.test_running = False
self.title.setText("Press any key to start...")
self.log.append('Finished test') self.log.append('Finished test')
......
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