def main(): # Obtiene la tabla Departments del descriptor descDepartments = Descriptor("Departments.txt") tablaDepartments = descDepartments.leerDescriptor() # Obtiene la tabla Employees del descriptor descEmployees = Descriptor("Employees.txt") tablaEmployees = descEmployees.leerDescriptor() # Genera Aplicación app = wx.App() # Genera un el Frame principal y le pasa la tabla de empleados ex = VentanaPrincipal(None, tablaEmployees, tablaDepartments) # Muestra el frame principal ex.Show() # Pone la aplicacion en loop app.MainLoop()
def test(): main = VentanaPrincipal() main.run()
''' Created on 20/07/2013 @author: Charlie Medina ''' import sys from PyQt4 import QtGui from VentanaPrincipal import VentanaPrincipal if __name__ == '__main__': app=QtGui.QApplication(sys.argv) vPrincipal = VentanaPrincipal() vPrincipal.show() sys.exit(app.exec_())
# -*- coding: utf-8 -*- """ Created on Fri Aug 30 13:31:25 2019 @author: Juan Carlos RM """ from PyQt5.QtGui import QIcon from PyQt5.QtWidgets import QApplication from VentanaPrincipal import VentanaPrincipal import sys if __name__ == '__main__': app = QApplication(sys.argv) app.setWindowIcon(QIcon("../img/buap.png")) v = VentanaPrincipal() sys.exit(app.exec_())