Loading SimfPythonGUI/AboutDialog.ui +1 −1 Original line number Diff line number Diff line Loading @@ -68,7 +68,7 @@ </widget> </item> <item> <widget class="QLabel" name="versionlabel"> <widget class="QLabel" name="versionLabel"> <property name="font"> <font> <pointsize>12</pointsize> Loading SimfPythonGUI/about.py +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): Loading @@ -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)) SimfPythonGUI/filehandlers.py +12 −0 Original line number Diff line number Diff line Loading @@ -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") Loading
SimfPythonGUI/AboutDialog.ui +1 −1 Original line number Diff line number Diff line Loading @@ -68,7 +68,7 @@ </widget> </item> <item> <widget class="QLabel" name="versionlabel"> <widget class="QLabel" name="versionLabel"> <property name="font"> <font> <pointsize>12</pointsize> Loading
SimfPythonGUI/about.py +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): Loading @@ -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))
SimfPythonGUI/filehandlers.py +12 −0 Original line number Diff line number Diff line Loading @@ -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")