Browse Source

'raspberry-pi/gui/mainWindow.py' ändern

änderung der aktualisierung der anzeige
Janek Fabian Franz 2 years ago
parent
commit
073951db08
1 changed files with 11 additions and 8 deletions
  1. 11 8
      raspberry-pi/gui/mainWindow.py

+ 11 - 8
raspberry-pi/gui/mainWindow.py

@@ -60,16 +60,19 @@ class MainWindow(tk.Frame):
     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.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.pack_forget(side="bottom", fill="both")
 
     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.pack_forget(side="bottom", fill="both")
+    logscreen_button.pack(side="bottom", fill="both")
+    logscren_button.pack_forget()
 
   def update(self):
     if not self.root.winfo_exists():
@@ -180,15 +183,15 @@ class MainWindow(tk.Frame):
     
   def menu(self):
     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.pack(side="bottom", fill="both")
 
   def goback(self):
-    self.menu_button.pack() 
+    self.menu_button.pack(side="bottom", fill="both") 
     self.quit_button.pack_forget()
     self.calibrate_button.pack_forget()
     self.clear_button.pack_forget()