| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 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 |