Commit 4ab2bb5f authored by Spencer Du's avatar Spencer Du

cameras ui fixed

parent 12d245d4
......@@ -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)
......
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