Currently have two functions, one to display for a win and one for a loss. I think I have it coded to where a popup occurs with a message and a button, but not exactly how I want it to be. I want the pop up to come up in the center of the screen, make the button larger, as well as the popup. Any help is appreciated.
Thanks
import tkinter as tk # popup window
from tkinter import ttk # popup window
def animate_win():
reg_font = ("Verdana", 22)
msg = "You WON!"
popup = tk.Tk()
popup.wm_title("Result")
popup.geometry("500x500")
text = ttk.Label(popup, text=msg, font=reg_font)
text.pack(side="top")
b1 = ttk.Button(popup, text=":)", command=popup.destroy)
b1.pack()
popup.mainloop()
def animate_loss():
reg_font = ("Verdana", 22)
msg = "You LOST!"
popup = tk.Tk()
popup.wm_title("Result")
popup.geometry("500x500")
text = ttk.Label(popup, text=msg, font=reg_font)
text.pack(side="top")
b1 = ttk.Button(popup, text=":(", command=popup.destroy)
b1.pack()
popup.mainloop()