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

Add versioning

parent 4b567c6a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@
     </widget>
    </item>
    <item>
     <widget class="QLabel" name="versionlabel">
     <widget class="QLabel" name="versionLabel">
      <property name="font">
       <font>
        <pointsize>12</pointsize>
+5 −0
Original line number Diff line number Diff line
from PyQt5 import uic
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QDialog
import pkg_resources


class AboutDialog(QDialog):
@@ -8,3 +9,7 @@ class AboutDialog(QDialog):
        super().__init__(flags=Qt.WindowStaysOnTopHint)
        uic.loadUi('AboutDialog.ui', self)
        self.show()
        self.versionLabel.setText(
            "Version: " +
            pkg_resources.get_distribution('SimfPythonGUI').version)
        print(str(pkg_resources.get_distribution('SimfPythonGUI').version))
+12 −0
Original line number Diff line number Diff line
@@ -32,3 +32,15 @@ class ImageHandler(PatternMatchingEventHandler):
    def on_created(self, event):
        # TODO: Update image views
        print("Update image")


class CSVHandler(PatternMatchingEventHandler):
    patterns = ["*.csv"]
    main = None

    def __init__(self, mainwindow):
        self.main = mainwindow

    def on_created(self, event):
        # TODO: Update irradiance count
        print("New CSV")