|
@@ -62,8 +62,12 @@ class MainWindow(tk.Frame):
|
|
|
self.mag_label.pack(side="top", fill="both", expand=False)
|
|
|
self.mag_dro_x = tk.StringVar()
|
|
|
self.mag_dro_y = tk.StringVar()
|
|
|
+ self.mag_dro_val_sums = tk.StringVar()
|
|
|
+ self.mag_dro_val_count = 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_y, 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)
|
|
|
+ tk.Label(self.controls, textvariable=self.mag_dro_y, 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")
|
|
@@ -134,12 +138,12 @@ class MainWindow(tk.Frame):
|
|
|
else:
|
|
|
self.opt_label.config(fg="black", bg="yellow")
|
|
|
|
|
|
- # if not self.mag_sensor.:
|
|
|
- # self.mag_label.config(fg="white", bg="red")
|
|
|
- # elif len(mag_positions) > 0:
|
|
|
- # self.mag_label.config(fg="white", bg="green")
|
|
|
- # else:
|
|
|
- # self.mag_label.config(fg="black", bg="yellow")
|
|
|
+ if not self.mag_sensor.:
|
|
|
+ self.mag_label.config(fg="white", bg="red")
|
|
|
+ elif len(mag_positions) > 0:
|
|
|
+ self.mag_label.config(fg="white", bg="green")
|
|
|
+ else:
|
|
|
+ self.mag_label.config(fg="black", bg="yellow")
|
|
|
|
|
|
|
|
|
# readouts will only be updated so often
|