Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Spencer Du
control software
Commits
4ab2bb5f
Commit
4ab2bb5f
authored
Jan 14, 2020
by
Spencer Du
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cameras ui fixed
parent
12d245d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
cameras2.py
cameras2.py
+45
-0
No files found.
cameras2.py
View file @
4ab2bb5f
...
...
@@ -497,6 +497,51 @@ class Ui_Cameras(object):
print
(
"Exposure time textbox set"
)
except
Exception
as
e
:
pass
try
:
self
.
lineEdit_8
.
setText
(
str
(
config
.
getint
(
"Delay"
,
"time"
)))
print
(
"Delay time textbox set"
)
except
Exception
as
e
:
pass
try
:
self
.
comboBox
.
setCurrentText
(
config
.
get
(
"Left camera"
,
"mode"
))
print
(
"Left camera mode set"
)
except
Exception
as
e
:
pass
try
:
self
.
lineEdit_2
.
setText
(
config
.
get
(
"Left camera"
,
"lines"
))
print
(
"Left camera lines set"
)
except
Exception
as
e
:
pass
try
:
self
.
comboBox_2
.
setCurrentText
(
config
.
get
(
"Right camera"
,
"mode"
))
print
(
"Right camera mode set"
)
except
Exception
as
e
:
pass
try
:
self
.
lineEdit_3
.
setText
(
config
.
get
(
"Right camera"
,
"lines"
))
print
(
"Right camera lines set"
)
except
Exception
as
e
:
pass
try
:
self
.
lineEdit_4
.
setText
(
config
.
get
(
"ROI"
,
"top"
))
print
(
"Top ROI set"
)
except
Exception
as
e
:
pass
try
:
self
.
lineEdit_6
.
setText
(
config
.
get
(
"ROI"
,
"left"
))
print
(
"Left ROI set"
)
except
Exception
as
e
:
pass
try
:
self
.
lineEdit_5
.
setText
(
config
.
get
(
"ROI"
,
"width"
))
print
(
"Width ROI set"
)
except
Exception
as
e
:
pass
try
:
self
.
lineEdit_7
.
setText
(
config
.
get
(
"ROI"
,
"height"
))
print
(
"Height ROI set"
)
except
Exception
as
e
:
pass
self
.
lineEdit
.
returnPressed
.
connect
(
self
.
exposureTime
)
self
.
lineEdit_8
.
returnPressed
.
connect
(
self
.
delay
)
self
.
lineEdit_2
.
returnPressed
.
connect
(
self
.
leftCamera
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment