Browse Source

Update 'start.py'

master
Joshua Pickard 3 years ago
parent
commit
1ad6a9e436
  1. 9
      start.py

9
start.py

@ -7,7 +7,7 @@ import requests
import fileinput import fileinput
import zipfile import zipfile
from pathlib import Path from pathlib import Path
import glob, os, shutil import glob, shutil, time
p = Path('.') p = Path('.')
@ -20,7 +20,6 @@ def buttonclick():
file = open('urls.txt', 'w') file = open('urls.txt', 'w')
file.write(listofurls) file.write(listofurls)
file.close() file.close()
# DOWNLOAD ALL ZIPS # DOWNLOAD ALL ZIPS
for lines in fileinput.FileInput("urls.txt"): for lines in fileinput.FileInput("urls.txt"):
print(lines) print(lines)
@ -62,7 +61,7 @@ customtkinter.set_default_color_theme("dark-blue")
root = customtkinter.CTk() root = customtkinter.CTk()
# root.iconbitmap('c:/file.ico') # root.iconbitmap('c:/file.ico')
root.geometry("540x450") root.geometry("510x300")
root.title('LCCC Viapath Downloader') root.title('LCCC Viapath Downloader')
frame = customtkinter.CTkFrame(master=root) frame = customtkinter.CTkFrame(master=root)
@ -75,7 +74,6 @@ urllabel.pack(pady=1, padx=1)
urltextbox = customtkinter.CTkTextbox(master=frame, wrap='word', height=150, width=400) urltextbox = customtkinter.CTkTextbox(master=frame, wrap='word', height=150, width=400)
urltextbox.pack(pady=10, padx=10) urltextbox.pack(pady=10, padx=10)
# BUTTON # BUTTON
wgetbutton = customtkinter.CTkButton(master=frame, width=40, height=40, text="Get Videos", command=buttonclick) wgetbutton = customtkinter.CTkButton(master=frame, width=40, height=40, text="Get Videos", command=buttonclick)
wgetbutton.pack() wgetbutton.pack()
@ -84,6 +82,7 @@ wgetbutton.pack()
progressBar = customtkinter.CTkProgressBar(master=frame, mode='determinate') progressBar = customtkinter.CTkProgressBar(master=frame, mode='determinate')
progressBar.pack(padx=10, pady=10) progressBar.pack(padx=10, pady=10)
progressBar.set(0) progressBar.set(0)
# labelProg = customtkinter.CTkLabel(master=frame, text="0%")
# labelProg.pack()
root.mainloop() root.mainloop()
Loading…
Cancel
Save