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 b0bbd04e authored by Ed Rogers's avatar Ed Rogers
Browse files

Add hiding and showing of log

parent 065caee9
......@@ -147,6 +147,7 @@ class TestWindow(QMainWindow):
self.log = QTextEdit()
self.log.setReadOnly(True)
self.log.setFocusPolicy(QtCore.Qt.NoFocus)
self.log.hide()
self.graph = HearingMplCanvas(parent=self)
......@@ -155,6 +156,12 @@ class TestWindow(QMainWindow):
grid_layout.addWidget(self.graph, 2, 0)
def keyPressEvent(self, event: QtGui.QKeyEvent):
if event.key() == Qt.Qt.Key_D:
if self.log.isHidden():
self.log.show()
else:
self.log.hide()
return
if not self.test_running:
if event.key() == Qt.Qt.Key_Escape:
self.close()
......
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