Administrator approval is now required for registering new accounts. If you are registering a new account, and are external to the University, please ask the repository owner to contact ServiceLine to request your account be approved. Repository owners must include the newly registered email address, and specific repository in the request for approval.

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

Improve speedup/slowdown used in debugging

parent fe51d7fc
......@@ -105,6 +105,7 @@ class HearingTestThread(QtCore.QThread):
class TestWindow(QMainWindow):
start_text = "Press space to start..."
slowdown = 10
def __init__(self, library):
QMainWindow.__init__(self)
......@@ -158,10 +159,10 @@ class TestWindow(QMainWindow):
self.log.hide()
return
if event.key() == Qt.Qt.Key_F:
HearingTest.max_response_time = 0.01
HearingTest.max_response_time /= self.slowdown
return
if event.key() == Qt.Qt.Key_S:
HearingTest.max_response_time = 1
HearingTest.max_response_time *= self.slowdown
return
if not self.test_running:
if event.key() == Qt.Qt.Key_Escape:
......
Markdown is supported
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