-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.py
More file actions
39 lines (32 loc) · 1.06 KB
/
Copy pathMain.py
File metadata and controls
39 lines (32 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from Database.Database import *
from Database.DadosProduto import *
from Screens.ScreenManager import *
class Main():
def __init__(self):
self.db = Database()
self.screenManager = ScreenManager()
self.dbProdutos = DadosProduto()
def main(self) -> None:
self.screenManager.mainloop()
def finalizar(self):
self.db.finalizarServidor()
# def testeDB(self) -> None:
# produtos = self.dbProdutos.getProdutos()
# for produto in produtos:
# print(produto)
# print("\n")
# produto = self.dbProdutos.getProdutoPorID(2)
# print(produto)
# print("\n")
# produtos = self.dbProdutos.getProdutoPorNome('pera')
# for produto in produtos:
# print(produto)
# print("\n")
# #print(self.db.createUsuario("teste", "teste", "teste", 3))
# #print(self.db.verificarNomeESenha("ricardo", "ricar"))
# Inicializa a aplicação
if __name__ == "__main__":
main = Main()
main.main()
#main.testeDB()
main.finalizar()