From ed45888d02048aad61971fefd67bfc9979cb2613 Mon Sep 17 00:00:00 2001 From: Zhao Zuohong <1040110848@qq.com> Date: Mon, 15 Nov 2021 18:00:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 5 +++++ main.py | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..efaa467 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.spec +__pycache__ +build/ +dist/ +env/ \ No newline at end of file diff --git a/main.py b/main.py index 503ef35..d14c8c5 100644 --- a/main.py +++ b/main.py @@ -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)