Code
saves = open('data.txt', 'w')
saves.write(path)
-----------------------------------------
def chooseDir():
global path
path = filedialog.askdirectory(title="Choose a download directory")
tk.Label(root, text=path, bg='gray').place(x=240,y=300)
saves()
---------------------------------------------------
saves = open('data.txt', 'w')
--------------------------------------------
tk_buttom
Button(root,text="Download video", width=20, bg='black',fg="white", command=downloadVideo).place(x=240, y=130)
Button(root,text="Choose location", width=20, bg='black',fg="white", command=chooseDir).place(x=240, y=160)
Label_3=Label(root, text="Curent location: ", font=("bold"), bg='gray')
Label_3.place(x=250, y=245)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.