diff --git a/2025-1-8-1.py b/2025-1-8-1.py index c3604f9..aeb62d5 100644 --- a/2025-1-8-1.py +++ b/2025-1-8-1.py @@ -9,13 +9,13 @@ class MovingLabel(threading.Thread): threading.Thread.__init__(self) self.text=text self.label=tk.Label(window,image=kuang,text=self.text,compound="center",font=("黑体",20),fg="white",width=190,height=45) - self.label.place(x=800,y=random.randint(10,550)) + self.label.place(x=random.randint(50,800),y=0) def run(self): - x=800 - while x>-200: - x-=2 - self.label.place(x=x) + y=0 + while y<650: + y+=2 + self.label.place(y=y) time.sleep(0.02) self.label.destroy()