Explorar o código

Vorlage Wertanzeige Magnetsensor

Janek Fabian Franz %!s(int64=3) %!d(string=hai) anos
pai
achega
83123d1b3d
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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.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.pack(side="bottom", fill="both")