Beispiel #1
0
 def gui():
     app = QtGui.QApplication([])
     # try:
     icon = MainWindow(args.no_auto)
     if args.image:
         icon.view_data_image(args.image)
     icon.show()
     app.exec_()
from GUI.mainWindow import MainWindow
from PyQt5 import QtWidgets

if __name__ == "__main__":
    import sys
    app = QtWidgets.QApplication(sys.argv)
    MainWindow = MainWindow()
    MainWindow.show()
    app.exec_()

Beispiel #3
0
def gotMpdData(args):
    print("received from MPD: %s" % args)


## =========================================================
## MAIN

real = ("armv7l" in os.uname()[4])
### begin debug ###
# real = False
### end debug   ###

rootPath = os.path.dirname(os.path.realpath(sys.argv[0]))
print("root = %s" % rootPath)
# win = MainWindow(1024,600,"%s/GTK/Styles.css"%rootPath,real)
win = MainWindow(config)
#time.sleep(1)
print("Main window done")

# GPS
myGps = Gps(real)
myGps.start()
while myGps.init:
    time.sleep(0.1)
print("GPS done")

# Database
db = dataBase("Jouke", "!Jouke", "localhost", "busGps")
db.start()
while db.init:
    time.sleep(0.1)
Beispiel #4
0
def main():
    app = QApplication(sys.argv)
    form = MainWindow()
    form.show()
    form.on_load()
    app.exec_()
Beispiel #5
0
from GUI.mainWindow import MainWindow


# --------------------------------------------------------------------------- #
# Main
# --------------------------------------------------------------------------- #

m1 = MainWindow()
m1.start()
Beispiel #6
0
def main(genreList=[]):
    app = QApplication(sys.argv)
    mainWindow = MainWindow(genreList)
    app.exec_()
    output = mainWindow.grabUserInfo()
    return(output)