-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenuPrincipal.py
More file actions
33 lines (30 loc) · 838 Bytes
/
MenuPrincipal.py
File metadata and controls
33 lines (30 loc) · 838 Bytes
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
import csv
import MenuProduto
import MenuCliente
import verificarcpf
import sqlite3
from subprocess import call
from tkinter import *
class UI:
def loop(self):
global response
while True:
cmd = input('''
Central de Cadastros.
[1] Menu de Produtos
[2] Menu de Clientes
[3] Sair.
O que deseja fazer?:
''')
if cmd == '1':
call(["python", "MenuProduto.py"])
elif cmd == '2':
call(["python", "MenuCliente.py"])
elif cmd == '3':
break
else:
print('Inválido')
continue
if __name__ == '__main__':
interface = UI()
interface.loop()