def __init__(self):
     super(PeerApplication, self).__init__()
     os.system("pyuic5 -x GUI/gui.ui -o GUI/gui.py")  # compile the gui
     from GUI.gui import Ui_MainWindow  # import the newly compiled gui
     self.ui = Ui_MainWindow()  # create an instance of the GUI
     self.ui.setupUi(self)
     self.configure()
     self.show()
예제 #2
0
 def __init__(self, parent=None):
     super(runGUI, self).__init__(parent)
     self.ui = Ui_MainWindow()
     self.ui.setupUi(self)
     self.createConnections()
     self.trainingDir = 'data/images/ORL/ORL/'
     self.trainPat = self.trainingDir + 'ORL.pat'
     self.testingDir = 'data/images/ORL/ORL/unseen/'
     self.testPat = self.testingDir + 'unseen.pat'
     self.debug = 1