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

Starting work on filehandler rewrite

parent d4ecd764
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -71,6 +71,9 @@ class ImageHandler(PatternMatchingEventHandler):
        self.current = (self.current + 1) % Config.dbg_lepton_set


# TODO: This needs to be thread safe
#       Good example:
#       https://github.com/yesworkflow-org/yw-gui/blob/master/main_ui.py
class CSVHandler(PatternMatchingEventHandler):
    patterns = ["*.csv"]
    main = None
@@ -80,5 +83,6 @@ class CSVHandler(PatternMatchingEventHandler):
        self.main = mainwindow

    def on_created(self, event):
        # TODO: use this to determine percentage complete
        # TODO: Update irradiance count
        print("New CSV")