Buttons in python

 from tkinter import *



def click():
    print("My name is Umair jutt")

count = 0
def counter():
    global count
    count += 1
    print(count)


window = Tk()
# window.geometry("300x300")
photo = PhotoImage(file="1.png")
button = Button(window,
                text="Submit",
                command=click,
                font=("Comic Sans"30),
                fg="cyan",
                bg="black",
                activeforeground="cyan",
                activebackground="black",
                state=ACTIVE,
                image = photo,
                compound='bottom',

                )
button.pack()
window.mainloop()

Comments