Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
Created loading.py
Browse files Browse the repository at this point in the history
A loading window used when downloading the required files.
  • Loading branch information
bennyscripts authored Feb 13, 2022
1 parent 6c6ffde commit 3180973
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions windows/loading.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 3180973

Please sign in to comment.