Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- global counter
- counter = 1
- main = Tk()
- main.geometry("300x100")
- maping = ["M","M","P","M","T","F","P","E","F"]
- ourMessage = 'This is our Message'
- messageVar = Message(main, text=maping[counter])
- messageVar.config(bg='lightgreen')
- messageVar.pack()
- bt = Button(main,
- text ="test",
- command = counter + 1)
- bt.pack(pady = 10)
- main.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement