from tkinter import *
import random
root = Tk()
root.geometry("500x300")
root.resizable(0, 0)
root.config(bg="#256999")
root.title("Gerar um nome de uma banda")
def app():
genres = ["Rock", "Pop", "Indie", "Funk", "Electronic", "Jazz"]
adjectives = ["Colorful", "Sonic", "Mystic", "Wild", "Electric"]
nouns = ["Echo", "Rhythm", "Harmony", "Vortex", "Chaos"]
genre = random.choice(genres)
adjective = random.choice(adjectives)
noun = random.choice(nouns)
mensagem = f"{genre} {adjective} {noun}"
resultado.set(mensagem)
titulo = Label(text="Gerar um nome de uma Banda",
font=("Arial", "23", "bold"),bg="#256999",fg="#d9ead3")
titulo.place(relx=0.05, rely=0.05)
#
but1 = Button(text="Gerar nome da banda ", bd=2, bg='#107db2', fg='white',
font=('verdana', 12, 'bold'),command=app)
but1.place(relx=0.22, rely=0.3, relwidth=0.55, relheight=0.15)
resultado = StringVar()
resultado_texto = Label(textvariable=resultado,
font=("Arial", 12, "bold"), bg="#cfe2f3")
resultado_texto.place(relx=0.05, rely=0.55, relwidth=0.9,relheight=0.3)
root.mainloop()