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

youtubesearch.Key()   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
nop 0
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