Commit f6ec321d authored by AJ Fite's avatar AJ Fite 🛫

Progress bar

parent 044b7317
......@@ -105,9 +105,6 @@ class MainWindow(QMainWindow):
# TODO: Capture progress
self.current = (self.current + 1) % Config.dbg_lepton_set
def update_licor(self, licor):
self.solarIrradiance.display(licor)
# Opens a link
@staticmethod
def open_link(link):
......@@ -178,6 +175,13 @@ class MainWindow(QMainWindow):
def update_images(self):
self.console_write_line("New images!\n")
def update_licor(self, licor):
self.solarIrradiance.display(licor)
self.current += 1
self.capProgress.setValue(
(self.current / Config.dbg_capture_count) * 100)
# Allows the console to handle \n newlines
def console_write_line(self, output):
# the QPlainTextEdit widget doesn't like newlines
......
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