优化显示
This commit is contained in:
parent
1d6b0b4b01
commit
ed45888d02
2 changed files with 8 additions and 2 deletions
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
*.spec
|
||||||
|
__pycache__
|
||||||
|
build/
|
||||||
|
dist/
|
||||||
|
env/
|
5
main.py
5
main.py
|
@ -5,11 +5,12 @@ import tkinter.messagebox as mb
|
||||||
|
|
||||||
def quit_school():
|
def quit_school():
|
||||||
mb.showinfo("退学通知", "滴!你被退学了!")
|
mb.showinfo("退学通知", "滴!你被退学了!")
|
||||||
|
root.destroy()
|
||||||
|
|
||||||
|
|
||||||
root = tk.Tk(className="你 要 挂 科 了")
|
root = tk.Tk(className="你 要 挂 科 了")
|
||||||
root.geometry("400x200")
|
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)
|
l.place(x=30, y=30, width=340)
|
||||||
|
|
||||||
by = ttk.Button(root, text="是的", command=quit_school)
|
by = ttk.Button(root, text="是的", command=quit_school)
|
||||||
|
@ -31,7 +32,7 @@ def exchange():
|
||||||
|
|
||||||
def vertical_move():
|
def vertical_move():
|
||||||
if state == 2:
|
if state == 2:
|
||||||
bn.place(x=280, y=100, width=100, height=40)
|
bn.place(x=280, y=80, width=100, height=40)
|
||||||
else:
|
else:
|
||||||
bn.place(x=280, y=140, width=100, height=40)
|
bn.place(x=280, y=140, width=100, height=40)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue