Esempio n. 1
0
 def run_app():
     # Creat an instance of PyQt5 application
     # Every PyQt5 application has to contain this line
     app = QApplication(sys.argv)
     # Set the default icon to use for all the windows of our application
     app.setWindowIcon(QIcon('myicon.ico'))
     # Create an instance of the GUI window.
     window = MainWindow()
     window.show()
     # Next line hands the control over to Python GUI
     app.exec_()
import sys
from PyQt5.QtWidgets import QApplication
from src.gui import MainWindow

if __name__ == "__main__":
    app = QApplication([])
    window = MainWindow(title="Client", is_server=False)
    window.show()
    sys.exit(app.exec_())
Esempio n. 3
0
from pyqtgraph.Qt import QtGui, QtCore
from src.gui.MainWindow import *

app = QtGui.QApplication([])

main_window = MainWindow(700, 600)
main_window.show()

if __name__ == '__main__':
    import sys
    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
        QtGui.QApplication.instance().exec_()
Esempio n. 4
0
from PyQt5.QtWidgets import QApplication

from src.gui import MainWindow

if __name__ == '__main__':
    app = QApplication([])
    gui = MainWindow()
    gui.show()
    app.exec_()