优化显示

This commit is contained in:
zhbaor 2021-11-15 18:00:02 +08:00
parent 1d6b0b4b01
commit ed45888d02
2 changed files with 8 additions and 2 deletions

5
.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
*.spec
__pycache__
build/
dist/
env/

View file

@ -5,11 +5,12 @@ import tkinter.messagebox as mb
def quit_school():
mb.showinfo("退学通知", "滴!你被退学了!")
root.destroy()
root = tk.Tk(className="你 要 挂 科 了")
root.geometry("400x200")
l = ttk.Label(root, text="可爱的小小小梦蕾要~挂~科~了~!", font=("微软雅黑", 14))
l = ttk.Label(root, text="可爱的小小小梦蕾要~挂~科~了~!", font=("微软雅黑", 12))
l.place(x=30, y=30, width=340)
by = ttk.Button(root, text="是的", command=quit_school)
@ -31,7 +32,7 @@ def exchange():
def vertical_move():
if state == 2:
bn.place(x=280, y=100, width=100, height=40)
bn.place(x=280, y=80, width=100, height=40)
else:
bn.place(x=280, y=140, width=100, height=40)