From c5fc7a430cc346979306b5482718377f4c420171 Mon Sep 17 00:00:00 2001 From: Junjie Date: Tue, 16 Mar 2021 17:20:23 +0800 Subject: [PATCH] README.md --- README.md | 1 + main.py | 12 +++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..abd887a --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +YJK 批量压缩工具 \ No newline at end of file diff --git a/main.py b/main.py index 289373e..04b3c14 100644 --- a/main.py +++ b/main.py @@ -16,7 +16,6 @@ # check box lf_check = LabelFrame(root, text="打包类型") -lf_check.grid(row=0, column=0, padx=10) check_box1 = Checkbutton(lf_check, text="衬图", variable=check_lst[0], @@ -38,7 +37,6 @@ # select button frame lf_select_btn = LabelFrame(root, text="工程选择") -lf_select_btn.grid(row=1, column=0, sticky=E+W, padx=10) # select button @@ -76,7 +74,6 @@ def submit(): submit_txt = StringVar() submit_txt.set("压缩选中的YJK工程文件") submit_btn = Button(root, textvariable=submit_txt, command=submit) -submit_btn.grid(row=2, column=0, sticky=E+W, padx=10, pady=10) # drag and drop @@ -94,4 +91,13 @@ def dnd(dnd_files): windnd.hook_dropfiles(root, func=dnd) +# status bar +status_bar = Label(root, text="https://github.com/SnVuamll/YJKzip", bd=1, relief=SUNKEN, anchor=W) + +# grid config +lf_check.grid(row=0, column=0, padx=10) +lf_select_btn.grid(row=1, column=0, sticky=E+W, padx=10) +submit_btn.grid(row=2, column=0, sticky=E+W, padx=10, pady=10) +status_bar.grid(row=3, sticky=E+W) + root.mainloop()