from tkinter import *
from tkinter import messagebox
def sim():
messagebox.showinfo("Resposta", "Você escolheu 'Sim'!")
def nao():
messagebox.showinfo("Resposta", "Você escolheu 'Não'!")
root =Tk()
root.title("Escolha 'Sim' ou 'Não'")
root.geometry("300x300")
root.config(bg="#2895a8")
botao_sim = Button(text="Sim", command=sim,font=("Arial", "15", "bold"),bg="#d9ead3",fg="#bf9000")
botao_sim.place(relx=0.15,rely=0.25,relwidth=0.3,relheight=0.4)
botao_nao = Button(text="Não", command=nao,font=("Arial", "15", "bold"),bg="#d9ead3",fg="#bf9000")
botao_nao.place(relx=0.55,rely=0.25,relwidth=0.3,relheight=0.4)
root.mainloop()