from tkinter import *
root = Tk()
root.geometry("600x700")
root.title("Placa árbitro ")
root.resizable(0,0)
root.configure(bg="#70b2a8")
def limpar():
temposaida = saida_tempo.get()
tempoentrada = entrada.get()
saida_tempo_entrada.delete(0, END)
entrada_entrada.delete(0, END)
temposaida = ''
tempoentrada = ''
saida_mostrar.set(temposaida),entrada_mostrar.set(tempoentrada)
def app():
temposaida = saida_tempo.get()
tempoentrada = entrada.get()
if temposaida > 99:
temposaida = ''
tempoentrada =''
if tempoentrada > 99:
tempoentrada = ''
temposaida = ''
saida_mostrar.set(temposaida),entrada_mostrar.set(tempoentrada)
frame1 = Frame(bg="black")
frame1.place(relx=0.05,rely=0.05,relwidth=0.9,relheight=0.6)
entrada_saidatexto =Label(text="Saída/Tempo descanso",
font=("arial","13","bold"),bg="#70b2a8")
entrada_saidatexto.place(relx=0.15,rely=0.68)
saida_tempo = IntVar()
saida_tempo_entrada= Entry(textvariable=saida_tempo,font=("Arial","12","bold"),
bg="white",fg="red",justify='center')
saida_tempo_entrada.place(relx=0.2,rely=0.73,relwidth=0.2)
entrada_entradatexto =Label(text="Entrada",font=("arial","13","bold"),bg="#70b2a8")
entrada_entradatexto.place(relx=0.7,rely=0.68)
entrada = IntVar()
entrada_entrada= Entry(textvariable=entrada,font=("Arial","12","bold"),
bg="white",fg="#274e13",justify='center')
entrada_entrada.place(relx=0.65,rely=0.73,relwidth=0.2)
saida_mostrar = StringVar()
saida_mostrar_resultado = Label(frame1,textvariable=saida_mostrar,justify='center',
font=("arial","100","bold"),bg="black",fg="red")
saida_mostrar_resultado.place(relx=0.05,rely=0.2)
entrada_mostrar = StringVar()
entrada_mostrar_resultado = Label(frame1,textvariable=entrada_mostrar,justify='center',
font=("arial","100","bold"),bg="black",fg="green")
entrada_mostrar_resultado.place(relx=0.55,rely=0.2)
butao_mostrar = Button(root, width=10, text="Mostrar", bg="#466a8d",
font=("Arial","12","bold"),fg="white",command=app)
butao_mostrar.place(relx=0.3,rely=0.8)
butao_limpar = Button(root, width=10, text="Limpar", bg="#466a8d",
font=("Arial","12","bold"),fg="white",command=limpar)
butao_limpar.place(relx=0.5,rely=0.8)
root.mainloop()