Summary
Keywords
Full Transcript
# Python #sqlite3 #tkinter #projetosempython Como criar um Sistema de Cadastro de Alunos em Python - Terminando a interface | Parte #13 # Tabela Alunos def mostrar_alunos(): app_nome = Label(frame_tabela, text="Tabela de estudantes", height=1,pady=0, padx=0, relief="flat", anchor=NW, font=('Ivy 10 bold'), bg=co1, fg=co4) app_nome.grid(row=0, column=0, padx=0, pady=10, sticky=NSEW) # creating a treeview with dual scrollbars list_header = ['id','Nome','email', 'Telefone','sexo', 'imagem', 'Data', 'CPF','Curso'] df_list = [] global tree_curso tree_aluno = ttk.Treeview(frame_tabela, selectmode="extended",columns=list_header, show="headings") # vertical scrollbar vsb = ttk.Scrollbar(frame_tabela, orient="vertical", command=tree_aluno.yview) # horizontal scrollbar hsb = ttk.Scrollbar(frame_tabela, orient="horizontal", command=tree_aluno.xview) tree_aluno.configure(yscrollcommand=vsb.set, xscrollcommand=hsb.set) tree_aluno.grid(column=0, row=1, sticky='nsew') vsb.grid(column=1, row=1, sticky='ns') hsb.grid(column=0, row=2, sticky='ew') frame_tabela.grid_rowconfigure(0, weight=12) hd=["nw","nw","nw","center","center","center","center","center","center"] h=[40,150,150,70,70,70,80,80,100] n=0 for col in list_header: tree_aluno.heading(col, text=col.title(), anchor=NW) # adjust the column's width to the header string tree_aluno.column(col, width=h[n],anchor=hd[n]) n+=1 for item in df_list: tree_aluno.insert('', 'end', values=item) mostrar_alunos() Seja membro do canal Junte-se a este canal para obter acesso a vantagens: https://www.youtube.com/channel/UCMqGy4xIIGs01ZVcBv0B8Cw/join ==================================== 📔 E-books práticos ==================================== Exercícios de Programação ➡︎ http://bit.ly/3XJoWO5 Projetos Python para Praticar ➡︎ http://bit.ly/3jA56G6 👍 Os e-books são gratuitos para os membros do canal omo criar um Sistema de Cadastro de Alunos em Python #python #tkinter #usandopython ==================================== ⭐Conteúdo ==================================== 🌍Confira nosso site: https://www.usandopy.com/pt/ 🔗Resumo do Python➡︎http://bit.ly/3DhWGd0 🔗Projetos Python para iniciantes➡︎ http://bit.ly/3Y3XASz 🔗Projetos Python intermediários➡︎ http://bit.ly/3JjI6Wj 🔗Projetos Python Avançados➡︎ http://bit.ly/3WGgv4A 🔗Tutorial de SQL➡︎ https://bit.ly/3WIxm6T 🔗Tutorial de Tkinter➡︎ http://bit.ly/3XLggXq ==================================== ⭐Melhores Playlists YouTube ==================================== 💻Resumo do Python➡︎https://bit.ly/3HDnyqr 💻Projetos Iniciantes em Python ➡︎ http://bit.ly/3Y3XASz 💻Projetos Python intermediários➡︎ https://bit.ly/3wBqTA1 💻Curso de Python Matplotlib➡︎ https://bit.ly/3WOmUe2 💻Exercícios de programação➡︎ https://bit.ly/3RaV4rj 💻Cusrso de SQL➡︎ https://bit.ly/3HAGsOG 💻Curso Python Tkinter➡︎ https://bit.ly/3wzoZ2U ==================================== 📔 E-books práticos ==================================== Exercícios de Programação ➡︎ http://bit.ly/3XJoWO5 Criando Projetos em Python ➡︎ http://bit.ly/3j5jeXP =========================== ⚡️ Conecte-se com a gente! =========================== ➡︎YouTube: @usandopython ➡︎Facebook: https://bit.ly/3XIdIcn ➡︎Instagram: https://bit.ly/3Hzdn6b ➡︎Twiter: https://bit.ly/407zWWP #Python, #joaofuti, #usandopython
