Репост из: 🌹⃝𖣔 𝐓𝐄𝐀𝐌 𝐓𝐌𝐌 ⛦⃕͜🇮🇳
import tkinter as tk
import random
def show_popup():
popup = tk.Toplevel(root)
popup.title("Popup")
label = tk.Label(popup, text="Thanks for Accepting")
label.pack(padx=20, pady=20)
def move_button(event):
x = random.randint(0, 350)
y = random.randint(0, 350)
no_button.place(x=x, y=y)
root = tk.Tk()
root.title("@ll_toxic_ayush_ll")
root.geometry("400x400")
question_label = tk.Label(root, text="Are you gay?")
question_label.pack(pady=20)
yes_button = tk.Button(root, text="Yes", command=show_popup)
yes_button.pack()
no_button = tk.Button(root, text="No")
no_button.pack()
no_button.bind("", move_button)
root.mainloop()
* RUN IN PYDRIOD 3
* JUST FOR FUN 🤡😂