Passed
Push — master ( 43c53e...1d3167 )
by Deepak
57s
created

AddOn   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 27
dl 0
loc 35
rs 10
c 0
b 0
f 0
wmc 3

3 Functions

Rating   Name   Duplication   Size   Complexity  
A Ysearch() 0 2 1
A WhatsApp() 0 3 1
A closer() 0 3 1
1
import tkinter
2
from tkinter import *
3
from tkinter import messagebox
4
5
window = Tk()
6
7
window.overrideredirect(True)
8
9
10
window.geometry("130x400+1000+80")
11
12
title_bar = Frame(window, bg='#4682b4', relief='ridge', bd=1, highlightcolor='#4682b4',highlightthickness=0)
13
14
title_name = Label(title_bar, text="FYIT ADDON", bg='#4682b4', fg="white")
15
#window.iconbitmap('YoutubeDownloader.ico')
16
def WhatsApp():
17
        from Main import minimize
18
        import AutoWhatsApp
19
def Ysearch():
20
	import youtubesearch
21
def closer():
22
        window.destroy()
23
        window.protocol("WM_DELETE_WINDOW")
24
25
AppButton =Button(window,text="WhatsApp",command = WhatsApp)
26
AppButton1 =Button(window,text="FastYoutubeSearch",command = Ysearch)
27
closeButton = Button(window,text ="Close",command = closer)
28
title_bar.pack(fill=X)
29
title_name.pack(side=LEFT)
30
AppButton.place(x=25,y=100)
31
AppButton1.place(x=10,y=200)
32
closeButton.place(x=65,y=300)
33
window.config(bg="green")
34
window.mainloop()
35