|
@@ -13,8 +13,6 @@ class Page_4(tk.Frame):
|
|
|
|
|
|
frame = tk.LabelFrame(self, text="Einstellungen")
|
|
frame = tk.LabelFrame(self, text="Einstellungen")
|
|
frame.pack(side=tk.LEFT, fill=tk.BOTH)
|
|
frame.pack(side=tk.LEFT, fill=tk.BOTH)
|
|
- label = tk.Label(frame, text="Einstellungen", font=LARGE_FONT)
|
|
|
|
- label.pack(pady=10,padx=10)
|
|
|
|
|
|
|
|
tk.Label(frame, text="Aktualisierungsinterval in ms").pack()
|
|
tk.Label(frame, text="Aktualisierungsinterval in ms").pack()
|
|
self.intervalSlider = tk.Scale(frame, from_=50, to=1000, resolution=10, orient=tk.HORIZONTAL)
|
|
self.intervalSlider = tk.Scale(frame, from_=50, to=1000, resolution=10, orient=tk.HORIZONTAL)
|
|
@@ -24,6 +22,10 @@ class Page_4(tk.Frame):
|
|
gridFrame = tk.LabelFrame(self, text="System Check")
|
|
gridFrame = tk.LabelFrame(self, text="System Check")
|
|
gridFrame.pack(side=tk.LEFT, fill=tk.BOTH)
|
|
gridFrame.pack(side=tk.LEFT, fill=tk.BOTH)
|
|
|
|
|
|
|
|
+ tk.Label(gridFrame, padx=5, pady=5, text="{:32s}".format("Messwerte")).grid(row=0, column=0)
|
|
|
|
+ self.rowCountLabel = tk.Label(gridFrame, padx=5, pady=5, text="")
|
|
|
|
+ self.rowCountLabel.grid(row=0, column=1)
|
|
|
|
+
|
|
self.sysLabels = []
|
|
self.sysLabels = []
|
|
for i in range(1, len(self.controller.columnNames)):
|
|
for i in range(1, len(self.controller.columnNames)):
|
|
name = controller.columnNames[i]
|
|
name = controller.columnNames[i]
|
|
@@ -41,4 +43,5 @@ class Page_4(tk.Frame):
|
|
nameLabel, valueLabel = self.sysLabels[i]
|
|
nameLabel, valueLabel = self.sysLabels[i]
|
|
color = 'red' if np.isnan(row[i]) else 'black' if row[i] == 0 else 'green'
|
|
color = 'red' if np.isnan(row[i]) else 'black' if row[i] == 0 else 'green'
|
|
nameLabel.config( fg = color)
|
|
nameLabel.config( fg = color)
|
|
- valueLabel.config(fg = color, text="{:5.4f}".format(row[i]))
|
|
|
|
|
|
+ valueLabel.config(fg = color, text="{:5.4f}".format(row[i]))
|
|
|
|
+ self.rowCountLabel.config(text="{:d} / {:d}".format(min(self.controller.rowIndex, self.controller.nRows), self.controller.nRows))
|