Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Cal Poly Solar Irradiance Microforecasting
SIMF Python GUI
Commits
ee0d0273
Unverified
Commit
ee0d0273
authored
Nov 21, 2018
by
AJ Fite
🛫
Browse files
Add versioning
parent
4b567c6a
Changes
3
Hide whitespace changes
Inline
Side-by-side
SimfPythonGUI/AboutDialog.ui
View file @
ee0d0273
...
...
@@ -68,7 +68,7 @@
</widget>
</item>
<item>
<widget
class=
"QLabel"
name=
"version
l
abel"
>
<widget
class=
"QLabel"
name=
"version
L
abel"
>
<property
name=
"font"
>
<font>
<pointsize>
12
</pointsize>
...
...
SimfPythonGUI/about.py
View file @
ee0d0273
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
))
SimfPythonGUI/filehandlers.py
View file @
ee0d0273
...
...
@@ -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"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment