|
@@ -60,16 +60,19 @@ class MainWindow(tk.Frame):
|
|
menu_button.pack(side="bottom", fill="both")
|
|
menu_button.pack(side="bottom", fill="both")
|
|
|
|
|
|
quit_button = tk.Button(self.controls, text="Quit", command=self.root.destroy, height=2, foreground="red")
|
|
quit_button = tk.Button(self.controls, text="Quit", command=self.root.destroy, height=2, foreground="red")
|
|
- quit_button.pack_forget(side="bottom", fill="both")
|
|
|
|
|
|
+ quit_button.pack(side="bottom", fill="both")
|
|
|
|
+ quit_button.pack_forget()
|
|
|
|
|
|
calibrate_button = tk.Button(self.controls, text="Calibrate AC", command=self.calibrate_ac, height=4)
|
|
calibrate_button = tk.Button(self.controls, text="Calibrate AC", command=self.calibrate_ac, height=4)
|
|
calibrate_button.pack_forget(side="bottom", fill="both")
|
|
calibrate_button.pack_forget(side="bottom", fill="both")
|
|
|
|
|
|
clear_button = tk.Button(self.controls, text="Clear graph", command=self.graph.clear, height=4)
|
|
clear_button = tk.Button(self.controls, text="Clear graph", command=self.graph.clear, height=4)
|
|
- clear_button.pack_forget(side="bottom", fill="both")
|
|
|
|
|
|
+ clear_button.pack(side="bottom", fill="both")
|
|
|
|
+ clear_button.pack_forget()
|
|
|
|
|
|
logscreen_button = tk.Button(self.controls, text="Log", command=self.open_log, height=4)
|
|
logscreen_button = tk.Button(self.controls, text="Log", command=self.open_log, height=4)
|
|
- logscreen_button.pack_forget(side="bottom", fill="both")
|
|
|
|
|
|
+ logscreen_button.pack(side="bottom", fill="both")
|
|
|
|
+ logscren_button.pack_forget()
|
|
|
|
|
|
def update(self):
|
|
def update(self):
|
|
if not self.root.winfo_exists():
|
|
if not self.root.winfo_exists():
|
|
@@ -180,15 +183,15 @@ class MainWindow(tk.Frame):
|
|
|
|
|
|
def menu(self):
|
|
def menu(self):
|
|
self.menu_button.pack_forget()
|
|
self.menu_button.pack_forget()
|
|
- self.quit_button.pack()
|
|
|
|
- self.calibrate_button.pack()
|
|
|
|
- self.clear_button.pack()
|
|
|
|
- self.logScreen_button.pack()
|
|
|
|
|
|
+ self.quit_button.pack(side="bottom", fill="both")
|
|
|
|
+ self.calibrate_button.pack(side="bottom", fill="both")
|
|
|
|
+ self.clear_button.pack(side="bottom", fill="both")
|
|
|
|
+ self.logScreen_button.pack(side="bottom", fill="both")
|
|
self.goback_button=tk.Button(self.controls, text="Go Back", command="goback", height=4)
|
|
self.goback_button=tk.Button(self.controls, text="Go Back", command="goback", height=4)
|
|
self.goback_button.pack(side="bottom", fill="both")
|
|
self.goback_button.pack(side="bottom", fill="both")
|
|
|
|
|
|
def goback(self):
|
|
def goback(self):
|
|
- self.menu_button.pack()
|
|
|
|
|
|
+ self.menu_button.pack(side="bottom", fill="both")
|
|
self.quit_button.pack_forget()
|
|
self.quit_button.pack_forget()
|
|
self.calibrate_button.pack_forget()
|
|
self.calibrate_button.pack_forget()
|
|
self.clear_button.pack_forget()
|
|
self.clear_button.pack_forget()
|