aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eitControl.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/eitControl.py b/eitControl.py
index f6c53e8..bbc5fd2 100644
--- a/eitControl.py
+++ b/eitControl.py
@@ -95,8 +95,10 @@ class Experiment:
d1 = Dock("Global", size=(5,1))
d2 = Dock("Data", size=(100,100))
d3 = Dock("RF Gen", size=(1,2))
+ dS = Dock("Status", size=(1,2))
area.addDock(d1, 'top')
- area.addDock(d2, 'bottom', d1)
+ area.addDock(dS, 'bottom', d1)
+ area.addDock(d2, 'bottom', dS)
area.addDock(d3, 'bottom', d2)
self.root.addWidget(area)
@@ -131,6 +133,10 @@ class Experiment:
w1.addWidget(bExit, row=0, col=4)
d1.addWidget(w1)
+ ## status line
+ self.statusline = l = QtGui.QLabel("All ok")
+ dS.addWidget(l, row=1, col=0)
+
# RF gen gui
fCent=self.rfGenFunc.getCenter()
fSpan=self.rfGenFunc.getSpan()
@@ -197,7 +203,6 @@ class Experiment:
def saveCmd(self):
csv_file = self.getNewDataFileName(ext='csv')
- print(f"Saving to {csv_file}")
data = self.data
try:
with open(csv_file, 'w') as csvfile:
@@ -206,6 +211,9 @@ class Experiment:
writer.writerows(zip(*data.values()))
except IOError:
print('I/O error')
+ msg = f"data saved to {csv_file}"
+ print(msg)
+ self.statusline.setText(msg)
png_file=csv_file.replace(".csv", ".png")
print(f"Picture saved to {png_file}")