Passed
Push — master ( fbc699...991608 )
by Deepak
53s
created

youtubesearch   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 17
dl 0
loc 19
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A Key() 0 2 1
1
import tkinter
2
import pywhatkit
3
from tkinter import Label,StringVar, Entry, Button,Tk
4
Window = Tk()
5
6
Window.geometry("500x400")
7
Window.title("Fast Youtube Search")
8
Name_Label = Label(Window,text="Fast Search in Youtube")
9
Name_Label.place(x=150, y=150)
10
Search_Key = StringVar()
11
KeyEntry = Entry(Window, textvariable=Search_Key)
12
13
def Key():
14
    pywhatkit.playonyt(Search_Key.get())
15
KeyEntry.place(x=150,y=180)
16
Search_Button = Button(Window,text="        Search      ",command=Key)
17
Search_Button.place(x=270,y=177)
18
Window.mainloop()
19