from tkinter import *
import random
root = Tk()
root.geometry("400x400")
root.resizable(0, 0)
root.config(bg="#103030")
root.title("Rifar ")
def Rifar():
numero = random.randint(1,99)
texto_sub1.config(text=numero)
def limpar():
texto_sub1.config(text="")
texto_sub1 = Label(text="",
font=("Arial", "190", "bold"), bg="#103030", fg="#49e3e3")
texto_sub1.place(relx=0.15, rely=0.05)
but1 = Button(text="Calcular", bd=2, bg='#107db2', fg='white',
font=('verdana', 12, 'bold'), command=Rifar)
but1.place(relx=0.1, rely=0.8, relwidth=0.25, relheight=0.1)
but_limpar = Button(text="Limpar", bd=2, bg='#107db2', fg='white',
font=('verdana', 12, 'bold'), command=limpar)
but_limpar.place(relx=0.4, rely=0.8, relwidth=0.25, relheight=0.1)
but_sair = Button(text="Sair", bd=2, bg='#107db2', fg='white',
font=('verdana', 12, 'bold'), command=root.destroy)
but_sair.place(relx=0.7, rely=0.8, relwidth=0.25, relheight=0.1)
root.mainloop()