|
@@ -11,23 +11,22 @@ class CalibrationPopUp(tk.Frame):
|
|
|
self.down_queue = down_queue
|
|
|
self.up_queue = up_queue
|
|
|
tk.Frame.__init__(self, root)
|
|
|
+ self.killed = False
|
|
|
|
|
|
- self.csString = tk.StringVar()
|
|
|
- self.instruction_string = tk.StringVar()
|
|
|
- self.instruction_string.set("start Calibration!")
|
|
|
- self.csString.set(self.calibration_state.state_clearname())
|
|
|
- cs = tk.Label(self,textvariable=self.csString, anchor="c")
|
|
|
- cs.pack(side="top", fill="both", expand=True)
|
|
|
- dummy = tk.Label(self,text="dummy im a dummy", anchor="c")
|
|
|
- dummy.pack(side="top", fill="both", expand=True)
|
|
|
- instruction = tk.Label(self,textvariable=self.instruction_string, anchor="c")
|
|
|
- instruction.pack(side="top", fill="both", expand=True)
|
|
|
- button = tk.Button(self,text="OK", command=self.calibration_state.next_state_gui, anchor="c")
|
|
|
+ self.instruction = tk.Label(self,text="Start Calibration", anchor="c",font=("Courier",18))
|
|
|
+ self.instruction.pack(side="top", fill="both", expand=True)
|
|
|
+ button = tk.Button(self,text="OK", command=self.calibration_state.next_state_gui, anchor="c",height=1,width=5)
|
|
|
button.pack(side="top", fill="both", expand=True)
|
|
|
+ self.cs = tk.Label(self,text=self.calibration_state.state_clearname(), anchor="c")
|
|
|
+ self.cs.pack(side="top", fill="both", expand=True)
|
|
|
|
|
|
def update(self):
|
|
|
- self.csString.set(self.calibration_state.state_clearname())
|
|
|
+ self.cs["text"] = self.calibration_state.state_clearname()
|
|
|
if self.calibration_state.get_state() == self.calibration_state.WAITING_POS_1:
|
|
|
- self.instruction_string.set("Move gondola to far left corner!")
|
|
|
- if self.calibration_state.get_state() == self.calibration_state.WAITING_POS_2:
|
|
|
- self.instruction_string.set("Move gondole to far right corner!")
|
|
|
+ self.instruction["text"] = "Move gondola to far left corner!"
|
|
|
+ elif self.calibration_state.get_state() == self.calibration_state.WAITING_POS_2:
|
|
|
+ self.instruction["text"] = "Move gondola to far right corner!"
|
|
|
+ elif self.calibration_state.get_state() == self.calibration_state.CALIBRATION_DONE:
|
|
|
+ self.instruction["text"] = "Calibration Done!"
|
|
|
+ else:
|
|
|
+ self.instruction["text"] = "Processing..."
|