Passed
Push — master ( 729176...d82ab1 )
by Deepak
55s
created

AddOn.call_main()   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
import tkinter
2
from tkinter import *
3
from tkinter import messagebox
4
import os
5
6
window = Tk()
7
8
window.overrideredirect(True)
9
10
11
window.geometry("130x400+1000+80")
12
13
title_bar = Frame(window, bg='#4682b4', relief='ridge', bd=1, highlightcolor='#4682b4',highlightthickness=0)
14
15
title_name = Label(title_bar, text="FYIT ADDON", bg='#4682b4', fg="white")
16
#window.iconbitmap('YoutubeDownloader.ico')
17
def WhatsApp():
18
		window.destroy()
19
		import AutoWhatsApp
20
21
def YSearchcall():
22
		window.destroy()
23
		import youtubesearch
24
def Ysearch():
25
		window.destroy()
26
		import youtubesearch
27
		
28
def closer():
29
        window.destroy()
30
        window.protocol("WM_DELETE_WINDOW")
31
def call_main():
32
		import Main
33
		window.update()
34
MainScreen_call = Button(window,text="Video Downloader",command=call_main)
35
AppButton =Button(window,text="WhatsApp",command = WhatsApp)
36
AppButton1 =Button(window,text="FastYoutubeSearch",command = YSearchcall)
37
closeButton = Button(window,text ="Close",command = closer)
38
title_bar.pack(fill=X)
39
title_name.pack(side=LEFT)
40
AppButton.place(x=10,y=100)
41
AppButton1.place(x=10,y=200)
42
closeButton.place(x=10,y=300)
43
MainScreen_call.place(x=10,y=350)
44
window.config(bg="green")
45
window.update()
46
window.mainloop()
47