示例#1
0
def main():
    a = QApplication(sys.argv)
    a.setQuitOnLastWindowClosed(True)
    a.setStyleSheet(qdarkstyle.load_stylesheet_pyqt5())
    # or in new API
    a.setStyleSheet(qdarkstyle.load_stylesheet(qt_api='pyqt5'))
    main_window = MainWindow()
    main_window.show()
    sys.exit(a.exec_())
示例#2
0
    def Login(self, event):
        from GUI.MainWindow import MainWindow

        print(event.widget)

        if self.DataBaseEntry.get() == "Prueba":
            if self.PasswordEntry.get() == "Password":
                main_window = MainWindow()
                main_window.mainloop()
                print("Correcto")
            else:
                print("La contraseña no es correcta")
        else:
            print("El usuario no es correcto")
示例#3
0
def main():
    global dbConn
    global dbCur
    global sock
    global signInDialog
    global mainWindow
    global regDialog

    dbConn  = sqlite3.connect('data.db')
    dbCur   = dbConn.cursor()

    ## load the hostname and port info from config.json
    # loadClientConfig()

    DBInit.init()

    sock            = socket(AF_INET, SOCK_STREAM)
    sock.connect((host,port))

    app             = QApplication(sys.argv)
    mainWindow      = MainWindow()
    regDialog       = RegisterDialog()
    signInDialog    = SignInDialog()


    signInDialog.ui.registerButton.clicked.connect(launchRegisterDiag)
    regDialog.ui.resetButton.clicked.connect(resetRegisterDiag)
    regDialog.ui.registerButton.clicked.connect(register)
    mainWindow.ui.friendListView.doubleClicked.connect(newChatDialog)

    ## Check if the user token is stored...
    x = dbCur.execute('SELECT * FROM USER')

    mainWindow.show()

    signInDialog.setSock(sock)

    if len(list(x)) == 0:
        ## open the login dialog
        mainWindow.ui.friendsOnlineLabel.setText('You Must Login to continue...')
        mainWindow.ui.label.setText('<font color="RED"><b>You are not Logged In!</b></font>')
        mainWindow.ui.friendListView.hide()

        signInDialog.show()
    else:
        signInDialog.show()

    _thread.start_new_thread(checkSignedIn, ())

    sys.exit(app.exec_())
示例#4
0
def main():
    app = QApplication(sys.argv)
    mainwindow = MainWindow()

    currentScreenWid = QApplication.desktop().width()
    currentScreenHei = QApplication.desktop().height()
    x = currentScreenWid / 1920.0
    y = currentScreenHei / 1080.0

    mainwindow.setMinimumSize(1366 * x, 768 * y)
    mainwindow.setGeometry(
        (QApplication.desktop().width() - mainwindow.width()) / 2,
        (QApplication.desktop().height() - mainwindow.height()) / 2, 1366 * x,
        768 * y)
    mainwindow.show()

    sys.exit(app.exec_())
示例#5
0
    def __init__(self, controller: Controller):
        super().__init__()

        self._controller = controller

        self._app = QApplication([])

        self._window = QWidget()
        self._window.setWindowTitle(
            QCoreApplication.translate("Project - ISBN Analysis",
                                       "Project - ISBN Analysis"))
        self._window.setFixedSize(930, 600)

        self._toolbar = Toolbar(self._window, self._controller)
        self._main = MainWindow(self._window, self._controller)
        self._window.show()

        sys.exit(self._app.exec())
from GUI.MainWindow import MainWindow
import sys
from PyQt5.QtWidgets import QApplication

app = QApplication(sys.argv)
ex = MainWindow()
sys.exit(app.exec_())
示例#7
0
def main():
    app = QApplication(sys.argv)
    window = MainWindow()
    window.showFullScreen()
    #window.show()
    app.exec_()
示例#8
0
from GUI.MainWindow import MainWindow
from PyQt5.QtWidgets import QApplication
import sys

app = QApplication(sys.argv)
win = MainWindow()
win.show()
sys.exit(app.exec_())
示例#9
0
def main():
    a = QApplication(sys.argv)
    a.setQuitOnLastWindowClosed(True)
    main_window = MainWindow()
    main_window.show()
    sys.exit(a.exec_())
示例#10
0
from GUI.MainWindow import MainWindow

if __name__ == '__main__':

    app = MainWindow()
    app.mainloop()
示例#11
0
 def play2(self):
     pygame.init()
     window2 = MainWindow(self.test_string)
     time.sleep(2)
     window2.run()
示例#12
0
 def play(self):
     pygame.init()
     window = MainWindow(self.test_string)
     window.textWindow()
     """
示例#13
0
def main():
    rospy.init_node('gps_status')
    app = QApplication(sys.argv)
    form = MainWindow()
    form.show()
    app.exec_()
示例#14
0
def main():
    rospy.init_node('RiC_GUI')
    app = QApplication(sys.argv)
    form = MainWindow()
    form.show()
    app.exec_()
示例#15
0
    print("Loading the model...")

    filePath = 'Results/'

    #modelName = 'Classic'
    modelName = 'OneLevel'
    #    modelName = 'Feedback'
    trainingSetName = 'Total'
    #    trainingSetName = 'Partial'
    #    trainingSetName = 'Spanish'
    #    trainingSetName = 'English'
    encoderName = '-CCE'
    #encoderName = '-RLE'
    #encoderName = '-TRE'

    fileName = filePath + modelName + trainingSetName + encoderName

    with open(fileName + '.pck', 'rb') as modelFile:
        model = cPickle.load(modelFile)

    print("Done!")
    #model.train(MTS.trainingData, 5, verbose=0)

    #TestSuite.testModel(model, trainingSet.trainingData,
    #    fileName=(fileName + '_Results'))

    app = QApplication([])
    window = MainWindow(model)
    #app.exec_()
    sys.exit(app.exec_())
示例#16
0
def main():
    app = QtWidgets.QApplication(sys.argv)
    window = MainWindow()
    window.show()
    return app.exec_()
示例#17
0
import sys

from PyQt5.QtWidgets import *

from GUI.MainWindow import MainWindow

if __name__ == "__main__":
    app = QApplication(sys.argv)
    window = MainWindow()
    window.resize(1200, 600)
    window.show()
    app.exec_()

示例#18
0
def main():
    rospy.init_node('ric_imuCalib')
    app = QApplication(sys.argv)
    form = MainWindow()
    form.show()
    app.exec_()