|
@@ -53,11 +53,12 @@ class MainWindow(tk.Frame):
|
|
|
|
|
|
def calibrate(self):
|
|
|
self.down_queue.put("calibrate")
|
|
|
- self.pu_root = tk.Tk()
|
|
|
- self.pu_root.title("Calibration")
|
|
|
- self.pu_root.geometry("500x200")
|
|
|
- self.popup = Popup.CalibrationPopUp(self.pu_root,self.up_queue,self.down_queue,self.calibration_state)
|
|
|
- self.popup.pack(side="top", fill="both", expand=True)
|
|
|
+ if not self.popup:
|
|
|
+ self.pu_root = tk.Tk()
|
|
|
+ self.pu_root.title("Calibration")
|
|
|
+ self.pu_root.geometry("500x200")
|
|
|
+ self.popup = Popup.CalibrationPopUp(self.pu_root,self.up_queue,self.down_queue,self.calibration_state)
|
|
|
+ self.popup.pack(side="top", fill="both", expand=True)
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|