diff --git a/windows/loading.py b/windows/loading.py new file mode 100644 index 0000000..d6adbf1 --- /dev/null +++ b/windows/loading.py @@ -0,0 +1,15 @@ +import tkinter as tk + +class LoadingWindow(tk.Tk): + def __init__(self): + tk.Tk.__init__(self) + self.title("Loading") + self.geometry("200x100") + self.resizable(0, 0) + self.wm_attributes("-topmost", 1) + self.label = tk.Label(self, text="Loading...") + self.label.pack(pady=10) + + def update_text(self, text): + self.label.configure(text=text) + self.update()