Build A Modern Python GUI Project | Step by Step Tutorial

Build A Modern Python GUI Project | Step by Step Tutorial

developedbyed

1 год назад

227,842 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Damian Strom
Damian Strom - 17.09.2023 02:50

So this is not Updated but pytube is not properly maintained as of now and does not work, I have provided a updated active fork alternative. Works as of 9/16/2023

pre req's

pip install -U yt-dlp


import tkinter
import customtkinter
import subprocess

def startDownload():
try:
ytLink = link.get()

# Using subprocess to run yt-dlp command
result = subprocess.run(['C:\\Users\\ ((((((((((((INSERTUSERHERE))))))))))\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python311\\Scripts\\yt-dlp', ytLink], capture_output=True, text=True, check=True)


# Print the result if you wish
print(result.stdout)

print("Download Success!")

except subprocess.CalledProcessError as e:
print(f"The video is unavailable for download: {e}")
print(e.output)
except Exception as e:
print("An error occurred:", str(e))
print("Unable to download the video.")


# system settings
customtkinter.set_appearance_mode("System")
customtkinter.set_default_color_theme("blue")

# frame
app = customtkinter.CTk()
app.geometry("720x480")
app.title("test")

# UI elements
title = customtkinter.CTkLabel(app, text="Put in your nice link")
title.pack()

# Link
url_var = tkinter.StringVar()
link = customtkinter.CTkEntry(app, width=350, height=40, textvariable=url_var)
link.pack()

# Download Button
download = customtkinter.CTkButton(app, text="Click if u eat pizza", command=startDownload)
download.pack(padx=10, pady=10)

# runloop
app.mainloop()

Ответить
Covert Nelson
Covert Nelson - 16.09.2023 18:50

Love this. Please do more.

Ответить
EasyPeasy Coding
EasyPeasy Coding - 07.09.2023 01:34

Tkinter is the worst library in the world.python actualy has no good gui library

Ответить
Anmol Gupta
Anmol Gupta - 25.08.2023 16:56

Really loved it ...!

Ответить
Frosted
Frosted - 21.08.2023 02:32

It says Download Complete, but i cannot find the video file anywhere

Ответить
L_2D
L_2D - 19.08.2023 00:13

hi this tutorial is amazing and it also worked for me but i just wanted to ask you if you can make another tutorial with all the same things in this tutorial but just adding a resolution buttons with different resolution

Ответить
Herry Nugroho
Herry Nugroho - 16.08.2023 06:41

Hello sir, my name is Herry and i'm still learning a python. I've got an issue in my code. When i started to run the program, my terminal mentioned me this No module named 'customtkinter'. Even i already install the customtkinter, pytube, this warning still appeared. Could you please explain to me how to solve this issue? And i apologize for my bad english. Big appreciate for you if you respond my comment. Thank you, sir.

Ответить
TheCoolVROne1
TheCoolVROne1 - 16.08.2023 02:59

mine says it failed and then saved and it doesnt even show in the directory!?!?!?!

Ответить
Killer B
Killer B - 14.08.2023 20:05

yoooooo i learned web front-end developement from you long ting time ago,and here we are learning again from the best.i missed learning from you.10/10 from now❤❤❤❤❤❤

Ответить
CODE ERROR
CODE ERROR - 31.07.2023 13:19

Videos with age restrictions cannot be downloaded. How are we going to save it?

Ответить
Casherino
Casherino - 28.07.2023 19:49

Amazing tutorial!

Ответить
Sheri
Sheri - 24.07.2023 19:41

Help
I recreated the same project but when I run the script, my window does not responds or prints download error.

please help me if somebody can

Ответить
PAYO CHANNEL
PAYO CHANNEL - 24.07.2023 03:46

I wish i knew more code.
The beauty of python .

Ответить
Manoel Lopes
Manoel Lopes - 06.07.2023 17:20

Loved this one, will try to implement a launcher for an online game and see how it goes... I am curious to know if I will be able to make it work by downloading the version updates of the files. can't wait to see more content like this one.

Ответить
Matias Delgado
Matias Delgado - 27.06.2023 01:06

And for date picker?

Ответить
TronixUK
TronixUK - 24.06.2023 00:27

Im not sure why but everything works other than when i try to download a video it just says the "Download Error" and i cant get around it

Ответить
Лев Аронов
Лев Аронов - 12.06.2023 15:24

first i found out about pytube and decided to combine it with tkinter in a project. than i was told that there is already a website that does the same thing i wanted to create. now i find out that there is already a tutorial on how to build such a project. at this point i'm dead inside...

Ответить
Ryan Geo
Ryan Geo - 08.06.2023 19:24

Where does it download?

Ответить
Oakenshield
Oakenshield - 18.05.2023 10:28

you are the best!!

Ответить
Eugen Malatov
Eugen Malatov - 18.05.2023 04:03

I have not rebuilt it yet, but really amazing. :) I would use pyinstaller as well to create an executable

Ответить
Kevin Vélez
Kevin Vélez - 08.05.2023 19:56

Great video.

Ответить
Holm Seifert
Holm Seifert - 02.05.2023 05:35

Great tutorial about developing a cool looking gui in Python. Thanks

Ответить
DrCognitive
DrCognitive - 02.05.2023 00:14

I made it, and it seems to work, but I can't find the directory where it's downloading them to!!!! It's not going to my downloads directory.

Ответить
Jason Kenney
Jason Kenney - 01.05.2023 07:00

does pytube still work? I keep getting an error

Ответить
ok mm
ok mm - 22.04.2023 17:25

Progessbar does not work

Ответить
Vasu Devan
Vasu Devan - 22.03.2023 09:49

🎉

Ответить
Shah Jahan
Shah Jahan - 19.03.2023 19:57

where is the code, only for video

Ответить
mehliamm
mehliamm - 14.03.2023 13:24

Where can I get inspo for clean modern UI's I can't seem to look up on yt cuz it gives random stuff that doesn't fit the description of what I'm trying to look for😭

Ответить
Rico kariuki
Rico kariuki - 09.03.2023 22:25

great tutorial there

Ответить
Cringe
Cringe - 01.03.2023 20:41

nothing happens when i run the program

Edit: nvm i figured it out, nice tutorial tho :)

Ответить
Mohammed Mahdi Djaballah
Mohammed Mahdi Djaballah - 28.02.2023 17:36

how can I change the download chunk size in pytube?? by default it is 9MB, and I want to make it less than that

Ответить
Hans Matos
Hans Matos - 20.02.2023 04:22

Where gtk4 + libadwaita? :(

Ответить
mateusz zawadka
mateusz zawadka - 12.02.2023 17:57

I can't find the path of the video I downloaded, can someone help me?

Ответить
James Sage
James Sage - 08.02.2023 23:34

Well done!!

Ответить
O1 Tech Academy
O1 Tech Academy - 03.02.2023 23:27

Nice one bro.

Ответить
Damian Strom
Damian Strom - 27.01.2023 01:56

damian@DESKTOP-NRS59TQ MINGW64 ~
$ python Untitled-1
C:\Users\dstro\AppData\Local\Programs\Python\Python310\python.exe: can't open file 'C:\\Users\\dstro\\Untitled-1': [Errno 2] No such file or directory


i get this error, very fustraiting

Ответить
Mohamed Lahrech
Mohamed Lahrech - 20.01.2023 13:46

Thank you, very useful and simple. Is it legal to deploy on my website?

Ответить
Rahul Bhatt
Rahul Bhatt - 20.01.2023 06:47

Please sir make a video on making a website that generates ai images using Stable Diffusion api with python, etc 🙏🙏🙏

Ответить
Ronny Kgalema
Ronny Kgalema - 19.01.2023 16:42

Please do another video where perhaps you combine this desktop app with backend. Node backend to be specific.

Thank you for great content 👏

Ответить
Martín De Lojo
Martín De Lojo - 18.01.2023 15:34

I have customtkinter installed and updated, but yet it says I dont. So I cant run the code.
Anyone else with the same problem?

ModuleNotFoundError: No module named 'customtkinter'

Ответить
AXEL -  KNOX
AXEL - KNOX - 17.01.2023 15:30

1 subscribe for you to not using any background music i love it

Ответить
Idk
Idk - 16.01.2023 17:39

Progress bar is indeed a problem, and somehow my labels as well.

Ответить
Andrew Erwin
Andrew Erwin - 15.01.2023 18:05

So, Python is great if you only want to tinker with settings but never learn how to program!

Ответить
Mutlu ŞEN
Mutlu ŞEN - 15.01.2023 15:17

Edwin, your google drive links are dead, please update them and also instered in patreon users.

Ответить
Nanak Singh
Nanak Singh - 15.01.2023 04:17

Absolutely love this one. Would like to see more. Thanks

Ответить
UltimaDJS
UltimaDJS - 14.01.2023 22:42

So I really like this and I followed the video step by step and it works great, except... it doesn't show the progress bar or percentage rising while running the code. In fact the whole console goes unresponsive until the download is complete After it's complete everything updates and shows as one would expect but it's not running while the download is progressing. Do you know of any fix to this?

Ответить