def test_controller_start(): import sys app = QApplication(sys.argv) app_event_loop = QEventLoop(app) asyncio.set_event_loop(app_event_loop) w = Glue() w.show()
def test_controller_start(): import sys app = QApplication(sys.argv) feeluown.config.load() app_event_loop = QEventLoop(app) asyncio.set_event_loop(app_event_loop) w = Glue() w.show()
MODE, DEBUG, WINDOW_ICON, FEELUOWN_PATH, SONGS_PATH from feeluown.glue import Glue ensure_data_dir() config.load() app = QApplication(sys.argv) app.setQuitOnLastWindowClosed(True) app.setWindowIcon(QIcon(WINDOW_ICON)) app.setApplicationName("FeelUOwn") app_event_loop = QEventLoop(app) asyncio.set_event_loop(app_event_loop) qss = QSS_PATH with open(qss, "r") as qssfile: app.setStyleSheet(qssfile.read()) if MODE != DEBUG: f_handler = open(LOGFILE, 'w') sys.stdout = f_handler sys.stderr = f_handler w = Glue() w.move(QApplication.primaryScreen().geometry().center() - w.rect().center()) w.show() app_event_loop.run_forever() sys.exit()
os.mkdir(SONGS_PATH) if __name__ == "__main__": ensure_data_dir() app = QApplication(sys.argv) app.setQuitOnLastWindowClosed(True) app.setWindowIcon(QIcon(WINDOW_ICON)) app.setApplicationName("FeelUOwn") app_event_loop = QEventLoop(app) asyncio.set_event_loop(app_event_loop) qss = QSS_PATH with open(qss, "r") as qssfile: app.setStyleSheet(qssfile.read()) if MODE != DEBUG: f_handler = open(LOGFILE, 'w') sys.stdout = f_handler sys.stderr = f_handler w = Glue() w.move(QApplication.primaryScreen().geometry().center() - w.rect().center()) w.show() app_event_loop.run_forever() sys.exit()