Unverified Commit f6ec321d authored by AJ Fite's avatar AJ Fite 🚀
Browse files

Progress bar

parent 044b7317
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -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