Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
HearingTest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ed Rogers
HearingTest
Commits
ac9284f1
Commit
ac9284f1
authored
7 years ago
by
Ed Rogers
Browse files
Options
Downloads
Patches
Plain Diff
Fix font of label and color of background
parent
d1563291
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
HearingTestGUI.py
+5
-4
5 additions, 4 deletions
HearingTestGUI.py
with
5 additions
and
4 deletions
HearingTestGUI.py
+
5
−
4
View file @
ac9284f1
...
...
@@ -141,7 +141,9 @@ class TestWindow(QMainWindow):
grid_layout
=
QGridLayout
(
self
)
central_widget
.
setLayout
(
grid_layout
)
self
.
title
=
QLabel
(
"
Press any key to start...
"
,
self
)
self
.
setStyleSheet
(
"
QMainWindow { background-color: black }
"
)
self
.
title
=
QLabel
(
"
Press space bar to start...
"
,
self
)
self
.
title
.
setStyleSheet
(
"
QLabel { background-color: black; color: white; font: 24pt}
"
)
self
.
title
.
setAlignment
(
QtCore
.
Qt
.
AlignCenter
)
self
.
log
=
QTextEdit
()
...
...
@@ -165,6 +167,7 @@ class TestWindow(QMainWindow):
if
event
.
key
()
==
Qt
.
Qt
.
Key_F
:
HearingTest
.
max_response_time
=
0.01
return
# TODO add slow mode
if
not
self
.
test_running
:
if
event
.
key
()
==
Qt
.
Qt
.
Key_Escape
:
self
.
close
()
...
...
@@ -208,14 +211,12 @@ class TestWindow(QMainWindow):
thresholds
=
thresholds
.
reshape
(
thresholds
.
shape
[
0
],
-
1
)
# convert to 2d
with
open
(
'
data.csv
'
,
'
ba
'
)
as
file
:
np
.
savetxt
(
file
,
thresholds
.
T
,
fmt
=
'
%.2f
'
,
delimiter
=
'
,
'
)
# TODO store test
# TODO calculate score
# TODO display
test
# TODO display
score
self
.
test
=
None
def
main
():
print
(
sd
.
default
.
device
[
'
output
'
])
device
=
sd
.
query_devices
(
sd
.
default
.
device
[
'
output
'
])
fs
=
device
[
'
default_samplerate
'
]
length
=
0.5
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment