NFLmusic库文件
This commit is contained in:
13
nflmusic/loading.py
Normal file
13
nflmusic/loading.py
Normal file
@ -0,0 +1,13 @@
|
||||
from tkinter import Frame, ttk
|
||||
|
||||
|
||||
class Loading:
|
||||
def __init__(self, box, length, width):
|
||||
self.box = box
|
||||
self.frame = Frame(self.box, length=length, width=width)
|
||||
self.progressbar = ttk.Progressbar(self.box, style="success.Striped.Horizontal.TProgressbar")
|
||||
self.frame.place(x=0, y=0)
|
||||
self.progressbar.place(relx=0.5, rely=0.8, anchor="center")
|
||||
|
||||
def set_progress(self, progress):
|
||||
self.progressbar["value"] = progress
|
Reference in New Issue
Block a user