Total Complexity | 1 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 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 |