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)