|
@@ -1,4 +1,5 @@
|
|
|
import tkinter as tk
|
|
|
+from tkinter.ttk import Progressbar
|
|
|
import tkinter.messagebox
|
|
|
import time
|
|
|
import queue
|
|
@@ -15,7 +16,7 @@ class CalibrationPopUp(tk.Frame):
|
|
|
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 = Progressbar(self, orient='horizontal', mode='determinate')
|
|
|
self.cs.pack(side="top", fill="both", expand=True)
|
|
|
|
|
|
root.bind('<Escape>', self.close)
|
|
@@ -24,7 +25,7 @@ class CalibrationPopUp(tk.Frame):
|
|
|
if not self.root.winfo_exists():
|
|
|
return
|
|
|
|
|
|
- self.cs["text"] = self.calibration_state.state_clearname()
|
|
|
+ self.cs['value'] = self.calibration_state.progress
|
|
|
if self.calibration_state.get_state() == self.calibration_state.WAITING_POS_1:
|
|
|
self.instruction["text"] = "Move gondola to far left corner!"
|
|
|
elif self.calibration_state.get_state() == self.calibration_state.WAITING_POS_2:
|