link = StringVar() Label(root, text = 'Paste Youtube Link Here:', font = 'arial 15 bold').place(x= 160, y = 60) link_enter = Entry(root, width = 70,textvariable = link).place(x = 32, y = 90) Here we made the downloader screen interface using the Tkinter library. The dimension of the Youtube downloader screen is 600*400. Then create a window screen for our YouTube downloader. MainFile.py from tkinter import * import pytube root = Tk() root.geometry('600x400') root.resizable(0,0) root.title('Ninza7-youtube video downloader') Label(root,text = 'Youtube Video Downloader', font ='arial 20 bold').pack() Make a python file inside the virtual environment. If you are a windows user then, you can install Tkinter at the time of python installation. To install Tkinter in Linux, you can use the command as shown below. Tkinter is a python package that mainly deals with the GUI part of a python project. To use the “tk” library, you must have Tkinter installed in your system.
We are going to use the “pytube” library to download the Youtube videos and the “tk” library to handle the GUI. After activating the virtual environment, let’s install the required python libraries.