Frase Inversa
from tkinter import * root = Tk() root.title( 'Inverso da frase' ) root.geometry( '400x200' ) root.resizable( False,False ) root.configure( background = '#eaeef5' ) def mostrar (): frase = frase_entry.get() palavra_inversa = "" for x in frase: palavra_inversa = x + palavra_inversa resultado[ 'text' ] = palavra_inversa frase_lb = Label( text = " Escreva a Frase " , font =( "Helvetica" , '14' , 'bold' ) , bg = '#78c8c0' , fg = '#0a0fc9' ) frase_lb.place( relx = 0.3 , rely = 0.05 ) frase_entry = Entry(root , justify = 'center' ) frase_entry.place( relx = 0.2 , rely = 0.3 , relwidth = 0.6 ) button = Button( text = 'Mostrar' , bg = '#0a0fc9' , fg = '#78c8c0' , font =( 'Arial' , '13' ) , command =mostrar) button.place( relx = 0.45 ,...