Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

Não consigo fazer rodar essa agenda telefonica

+3 votes
asked Feb 19 by Fabio Castro (150 points)
AGENDA TELEFONICA

from tkinter import *

from tkinter.ttk import *

# cores ------------------------

co0 = "#f0f3f5"  # Preta

co1 = "#f0f3f5"  # cinzentada / grey

co2 = "#feffff"  # branca

co3 = "#38576b"  # preta/ black

co4 = "#403d3d"  # letra

co5 = "#6f9fbd"  # azul

co6 = "#ef5350"  # vermelha

co7 = "#93cd95"  # verde

# criando janela ----------------------

janela = Tk()

janela.title("Minha Aplicação")

janela.geometry('500x450')

janela.configure(background=co1)

janela.resizable(width=False, height=False)

style = Style(janela)

style.theme_use("clam")

############## Frames #############

frame_cima = Frame(janela, width=500, height=50, bg=co3, relief="flat")

frame_cima.grid(row=0, column=0, pady=1, padx=0, sticky=NSEW)

frame_baixo = Frame(janela, width=500, height=150, bg=co1, relief="flat")

frame_baixo.grid(row=1, column=0, pady=1, padx=0, sticky=NSEW)

frame_tabela = Frame(janela, width=500, height=248, bg=co2, relief="flat")

frame_tabela.grid(row=2, column=0, columnspan=2, padx=10, pady=1, sticky=NW)

# configurando frame cima

l_nome = Label(frame_cima, text="Agenda Telefônica", height=1, anchor=NE, front=('arial 20 blod'),bg=co3, fg=co1)

l_nome.place(x=5, y=5)

# configurando linha

l_linha = Label(frame_cima, text="", width=500, anchor=NE, front=('arial 1'),bg=co2, fg=co1)

l_nome.place(x=0, y=46)

# configurando frame baixo

l_nome = Label(frame_baixo, text="Nome *", height=1, anchor=NW, front=('Ivy 10'), bg=co1, fg=co4)

l_nome.place(x=10, y=20)

e_nome = Entry(frame_baixo, width=25, justify='left', font=("", 10), highlightthickness=1)

e_nome.place(x=80, y=20)

l_sexo = Label(frame_baixo, text="Sexo *", height=1, anchor=NW, front=('Ivy 10'), bg=co1, fg=co4)

l_sexo.place(x=10, y=50)

e_sexo = Entry(frame_baixo, width=25, justify='left', font=("", 10), highlightthickness=1)

e_sexo.place(x=80, y=50)

l_tel = Label(frame_baixo, text="Telefone *", height=1, anchor=NW, front=('Ivy 10'), bg=co1, fg=co4)

l_tel.place(x=10, y=80)

e_tel = Entry(frame_baixo, width=25, justify='left', font=("", 10), highlightthickness=1)

e_tel.place(x=80, y=80)

l_email = Label(frame_baixo, text="E-mail *", height=1, anchor=NW, front=('Ivy 10'), bg=co1, fg=co4)

l_email.place(x=10, y=110)

e_email = Entry(frame_baixo, width=25, justify='left', font=("", 10), highlightthickness=1)

e_email.place(x=80, y=110)

l_procurar = Button(frame_baixo, text="Procurar", front=('Ivy 8'), bg=co1, fg=co4, relief=RAISED, overrelef=RIDGE)

l_procurar.place(x=190, y=20)

e_procurar = Entry(frame_baixo, width=16, justify='left', font=("", 11), highlightthickness=1)

e_procurar.place(x=347, y=21)

Por favor, me ajudem...

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...