From 3180973be386c39d9dba3fc1d1d2436886d59427 Mon Sep 17 00:00:00 2001 From: Ben Tettmar <83777519+bentettmar@users.noreply.github.com> Date: Sun, 13 Feb 2022 14:36:41 +0000 Subject: [PATCH] Created loading.py A loading window used when downloading the required files. --- windows/loading.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 windows/loading.py 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()