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
d4ecd764
Unverified
Commit
d4ecd764
authored
Nov 23, 2018
by
AJ Fite
🛫
Browse files
more work on enable/disable state
parent
3e4a785c
Changes
1
Hide whitespace changes
Inline
Side-by-side
SimfPythonGUI/main.py
View file @
d4ecd764
...
...
@@ -51,6 +51,9 @@ class MainWindow(QMainWindow):
# Ready to show the UI!
self
.
show
()
self
.
cameraCount
.
display
(
"OFF"
)
self
.
solarIrradiance
.
display
(
"OFF"
)
# Opens a link
@
staticmethod
def
open_link
(
link
):
...
...
@@ -92,9 +95,16 @@ class MainWindow(QMainWindow):
self
.
imgCenter
.
setEnabled
(
status
)
self
.
actionSettings
.
setDisabled
(
status
)
if
status
:
self
.
cameraCount
.
display
(
Config
.
dbg_lepton_set
)
self
.
statusLabel
.
setText
(
"Status: Capturing"
)
else
:
self
.
cameraCount
.
display
(
"OFF"
)
self
.
solarIrradiance
.
display
(
"OFF"
)
self
.
statusLabel
.
setText
(
"Status: Stopped"
)
# Triggered when the QProcess that runs the lepton-grabber runs
def
process_started
(
self
):
self
.
statusLabel
.
setText
(
"Status: Capturing"
)
self
.
button_toggle
(
True
)
# Start the file observers
...
...
@@ -113,7 +123,6 @@ class MainWindow(QMainWindow):
# Triggered when the QProcess that runs the lepton-grabber dies for any
# reason
def
process_finished
(
self
):
self
.
statusLabel
.
setText
(
"Status: Stopped"
)
self
.
button_toggle
(
False
)
self
.
console_write
()
...
...
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