Browse Source

Vorlage Wertanzeige Magnetsensor

Janek Fabian Franz 3 years ago
parent
commit
83123d1b3d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      raspberry-pi/gui/mainWindow.py

+ 4 - 0
raspberry-pi/gui/mainWindow.py

@@ -59,6 +59,10 @@ class MainWindow(tk.Frame):
 
 
     self.mag_label = tk.Label(self.controls, text="Magnetic Sensor", anchor="c", font=("Helvatica", 10, 'bold'))
     self.mag_label = tk.Label(self.controls, text="Magnetic Sensor", anchor="c", font=("Helvatica", 10, 'bold'))
     self.mag_label.pack(side="top", fill="both", expand=False)
     self.mag_label.pack(side="top", fill="both", expand=False)
+    self.mag_dro_x = tk.StringVar()
+    self.mag_dro_y = tk.StringVar()
+    tk.Label(self.controls, textvariable=self.mag_dro_x, anchor = "nw").pack(side = "top", fill = "both", expand = False)
+    tk.Label(self.controls, textvariable=self.mag_dro_x, anchor = "nw").pack(side = "top", fill = "both", expand = False)
 
 
     self.quit_button = tk.Button(self.controls, text="Quit", command=self.root.destroy, height=2, foreground="red")
     self.quit_button = tk.Button(self.controls, text="Quit", command=self.root.destroy, height=2, foreground="red")
     self.quit_button.pack(side="bottom", fill="both")
     self.quit_button.pack(side="bottom", fill="both")