subDesTagesMitExtraKaese 4 жил өмнө
parent
commit
5e894bd1aa
1 өөрчлөгдсөн 6 нэмэгдсэн , 3 устгасан
  1. 6 3
      software/ui/Page_4.py

+ 6 - 3
software/ui/Page_4.py

@@ -13,8 +13,6 @@ class Page_4(tk.Frame):
 
     frame = tk.LabelFrame(self, text="Einstellungen")
     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()
     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.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 = []
     for i in range(1, len(self.controller.columnNames)):
       name = controller.columnNames[i]
@@ -41,4 +43,5 @@ class Page_4(tk.Frame):
         nameLabel, valueLabel = self.sysLabels[i]
         color = 'red' if np.isnan(row[i]) else 'black' if row[i] == 0 else 'green'
         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))