-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
28 lines (22 loc) · 1.02 KB
/
app.py
File metadata and controls
28 lines (22 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import tkinter as tk
from tkinter import *
number = 0
def clicker():
global number
number += 1
ShowInfo["text"] = "You have clicked " + str(number) + " times."
window = tk.Tk()
window.title('Developer Anger Button')
window.geometry('870x100')
window.configure(bg='lightblue')
image = PhotoImage(file="logo.png")
window.iconphoto(True, tk.PhotoImage(file="logo.png"))
Label = tk.Label(window, text="Take out all your anger from a bug or error on this button.You setup is expensive,it doesnt deserve to get beaten.",bg = "lightblue",font = "Arial 12 bold")
ClickingButton = tk.Button(window,text = "HIT ME!", bg = "gold" , command = clicker)
ShowInfo = tk.Label(window,text = "Click the button to release your stress." , bg = "lightblue" , font = "Arial 12 bold")
label = tk.Label(window , text = "Even the most annoying of code,errors and bugs are solved with patience and time.", bg="lightblue", font = "Arial 12 bold")
Label.pack()
ClickingButton.pack()
ShowInfo.pack()
label.pack()
window.mainloop()