class Application(QtGui.QApplication):

    """
		Main application class derived from QApplication.
	"""

    def __init__(self):
        QtGui.QApplication.__init__(self, sys.argv)

        self.main = MainWindow()
        self.main.show()
    def __init__(self):
        QtGui.QApplication.__init__(self, sys.argv)

        self.main = MainWindow()
        self.main.show()
Beispiel #3
0

class SignalAdapter():
    def __init__(self):
        pass

    def adapt(self, signal, function):
        signal.connect(function)


if __name__ == '__main__':
    app = QApplication(sys.argv)
    qtmodern.styles.dark(app)
    #qtmodern.styles._apply_base_theme(app)

    ECGUI = MainWindow()
    #ECGUI = qtmodern.windows.ModernWindow(MainWindow())
    #servEC = ServEC()
    #servEC.start()

    thdm = ThreadManager()

    sigAda = SignalAdapter()
    sigAda.adapt(ECGUI.switchNet.signal_switch, thdm.getSignal)
    sigAda.adapt(ECGUI.switchEC.signal_switch, thdm.getSignal)

    #LBPH WINDOW
    sigAda.adapt(ECGUI.windowLBPH.switchGenerate.signal_switch,
                 ECGUI.windowLBPH.generateFaceData)
    sigAda.adapt(ECGUI.windowLBPH.switchTrain.signal_switch,
                 ECGUI.windowLBPH.trainFaceModel)