-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
29 lines (20 loc) · 679 Bytes
/
main.py
File metadata and controls
29 lines (20 loc) · 679 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
# mosulos de PySide2
from PySide2.QtWidgets import QApplication
# clase generar pdf
from Funcion_pdf import ClaseGeneradorExcel
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
app.setStyle('Fusion') # opcional
reportepdf = ClaseGeneradorExcel() # principal
opcion = input('\n[1] PDF Vertical\n[2] PDF Horizontal\nOpción: ')
if(opcion=='1'):
print('Reporte Vertical')
reportepdf.gene_reporte_uno() # genera
if(opcion=='2'):
print('Reporte Horizontal')
reportepdf.gene_reporte_dos() # genera
else:
print('Opcion no valida')
sys.exit()
print('Fin del proceso')