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

Add versioning

parent 4b567c6a
......@@ -68,7 +68,7 @@
</widget>
</item>
<item>
<widget class="QLabel" name="versionlabel">
<widget class="QLabel" name="versionLabel">
<property name="font">
<font>
<pointsize>12</pointsize>
......
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))
......@@ -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")
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