-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.py
53 lines (40 loc) · 942 Bytes
/
Main.py
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
'''
Created on: 2015
Author: Mizael Martinez
'''
import sys, os, threading, time, Queue
sys.path.append("controller")
sys.path.append("view")
sys.path.append("object")
from RecolectarDatos import RecolectarDatos
from login import Login
from inicio import Ui_inicio
from aplicacionPrueba import Aplicacion
from Hilo import Hilo
from PyQt4 import QtCore, QtGui
if __name__ == "__main__":
try:
d=RecolectarDatos()
d.setIdLetra(1)
d.setProbando(False)
log=Login()
#log.setId(0)
evento=threading.Event()
queue = Queue.Queue()
h=Hilo(evento,d,log)
h.start()
prueba=Aplicacion()
prueba.setDatos(d)
prueba.setEvento(evento)
app = QtGui.QApplication(sys.argv)
inicio = QtGui.QMainWindow()
ui = Ui_inicio()
ui.setLogin(log)
ui.setDatos(d)
ui.setEvento(evento)
ui.setAplicacionPrueba(prueba)
ui.setupUi(inicio)
inicio.show()
sys.exit(app.exec_())
except KeyboardInterrupt:
sys.exit(0)