diff --git a/.gitignore b/.gitignore index e3525b2..120e27a 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,6 @@ pyvenv.cfg atlas.db setup.pyvenv atlas.sqlite +atlas.sqlite +setup.py +tests.py diff --git a/README.md b/README.md index ccc2e8a..43d0773 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,4 @@ I need an local server to help me stay up-to-date and giving away of spreadsheet - Tela de login. - Pagina Inicial +- Página de Relatórios diff --git a/atlas.sqlite b/atlas.sqlite deleted file mode 100644 index 9a6fb04..0000000 Binary files a/atlas.sqlite and /dev/null differ diff --git a/main.py b/main.py index cd5d2e1..a79c5a4 100644 --- a/main.py +++ b/main.py @@ -27,6 +27,7 @@ def login_clicked(): showwarning(title='ERRO', message='Usuário e Senha incorreto.') def user_logado(): + janela.withdraw() janela2 = tk.Toplevel() janela2.title('ATLAS - Interface') @@ -35,6 +36,8 @@ def user_logado(): janela_label.grid(row=0,column=0,padx=10,pady=30,columnspan=4) relatorio_label = tk.Label(janela2, text="Relatório") relatorio_label.grid(row=1,column=1,padx=5,pady=5) + relatorio_label = tk.Label(janela2, text="Adicione eventos recentes relatando o que ocorreu") + relatorio_label.grid(row=1,column=1,padx=5,pady=5) def cadastrar_usuario(): global janelacn_entry @@ -136,10 +139,12 @@ def cad_usuario(): password_entry = ttk.Entry(janela, textvariable=password) password_entry.grid(row=5,column=3,padx=10,pady=10) -texto1 = ttk.Label(janela, text="-Relatórios") -texto1.grid(row=3,column=0,padx=10,pady=10, ipadx=80) +texto1 = ttk.Label(janela, text="-Gerenciamento Planilhas") +texto1.grid(row=3,column=0,padx=5,pady=5, ipadx=30) texto2 = ttk.Label(janela, text="-Relatórios") -texto2.grid(row=4,column=0,padx=10,pady=10,ipadx=80) +texto2.grid(row=4,column=0,padx=5,pady=10,ipadx=30) +texto3 = ttk.Label(janela, text="-Gerenciamento de Colaboradores") +texto3.grid(row=5,column=0,padx=5,pady=5,ipadx=30) # Manter janela aberta janela.mainloop() \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index 7fcfb0e..0000000 --- a/setup.py +++ /dev/null @@ -1,18 +0,0 @@ -import sqlite3 - - -conexao = sqlite3.connect('atlas.sqlite') -c = conexao.cursor() - -c.execute('''ALTER TABLE users ALTER id PRIMARY KEY, AUTOINCREMENT - -''') -#c.execute(" INSERT INTO usuarios (nome, user, password, email) VALUES ('teste', 'teste', '1234', 'magno@atlas.com')") -# c.execute('''UPDATE users SET user = 'colab' WHERE id = 1''') -# c.execute('''UPDATE users SET password = 'colab' WHERE id = 1''') -# c.execute('''UPDATE users SET rank = 0 WHERE id = 1''') -# c.execute('''UPDATE users SET email = 'colab@atlas.io' WHERE id = 1''') -# c.execute('''UPDATE users SET cargo = 'colab' WHERE id = 1''') -# c.execute('''UPDATE users SET active = 0 WHERE id = 1''') -conexao.commit() -conexao.close() \ No newline at end of file