Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import tkinter
- # from PIL import ImageTk, Image
- window = tkinter.Tk()
- window.geometry("1000x1000")
- window.title("Крутая программа")
- window.resizable(False, False)
- window.iconbitmap("icon.ico")
- count = 0
- def print_text():
- global count
- count = count + 1
- text1["foreground"] = "green"
- text1 = tkinter.Label(text=0, font=("Arial", 48, "bold"))
- text1.pack()
- btn = tkinter.Button(text="НАЖМИ МЕНЯ!!!", command=print_text)
- btn.pack()
- tkinter.mainloop()
Add Comment
Please, Sign In to add comment