is tkinter and pyqt5 27s interface the same 3f

Solutions on MaxInterview for is tkinter and pyqt5 27s interface the same 3f by the best coders in the world

showing results for - "is tkinter and pyqt5 27s interface the same 3f"
Gaétan
14 Mar 2017
1from tkinter import *
2from tkinter.font import BOLD
3import time
4from playsound2 import playsound
5def hello():
6    print("Hello there.")
7def name():
8    print("My name is Powershell")
9
10def youtube():
11    print("Finding Link...")
12    time.sleep(2)
13    print("Processing...")
14    time.sleep(5)
15    print("Link: youtube.com")
16def twitter():
17    print("Finding Link...")
18    time.sleep(2)
19    print("Processing...")
20    time.sleep(5)
21    print("Link: twitter.com")
22
23def play():
24    playsound(r'C:\Users\I MAC\Desktop\Coding Files/cropped out edit.mp3')
25
26
27def meme():
28    print('''So you call these these things chips? Instead of Crispity Crunchy Munchy Crackerjack
29     Snacker Nibbler Snap Crack N Pop Westerpoolchestershireshire Queen's Lovley Jubliy Delight? Thats rather bit cringe innit bruv?''')
30
31def job():
32    print("I respond to different types of commands inputted by the user. Just like you clicking the buttons to make me respond.")
33
34def how_are_you():
35    print('I am doing fine')
36
37def goodbye():
38    print("Goodbye")
39
40def quit():
41    exit()
42root = Tk()
43root.geometry('500x500')
44root.overrideredirect(True)
45root.resizable(False,False)
46root.title('Make your terminal say things V1.0')
47root.iconbitmap(r'C:\Users\I MAC\Desktop\Coding Files/bot.ico')
48root.configure(bg='light blue')
49root.bell()
50b = Button(root, text='Say Hello', command=hello)
51d = Button(root, text='QUIT',font=BOLD, command=quit)
52c = Button(root, text='Say Goodbye',command=goodbye)
53e = Button(root,text='How are you',command=how_are_you)
54f = Button(root,text='Ask Name',command=name)
55g = Button(root, text='Ask for a joke', command=meme)
56z = Button(root, text="Ask Terminal's Job",command=job)
57l = Button(root,text="Youtube Link",command=youtube)
58tw = Button(root,text="Twitter Link",command=twitter)
59msc = Button(root,text='Play A cool sound',command=play)
60k = Label(root, text='Make your terminal say things. V1.0', height=9, width=35)
61b.configure(bg='blue')
62d.configure(bg='red')
63c.configure(bg='blue')
64e.configure(bg='blue')
65f.configure(bg='blue')
66g.configure(bg='blue')
67z.configure(bg='blue')
68l.configure(bg='blue')
69tw.configure(bg='blue')
70msc.configure(bg='blue')
71k.configure(bg='green')
72d.pack()
73b.pack()
74c.pack()
75e.pack()
76f.pack()
77g.pack()
78z.pack()
79l.pack()
80tw.pack()
81msc.pack()
82k.pack()
83root.mainloop()