diff --git a/openfm_qt/__init__.py b/openfm_qt/__init__.py index 6ea43af..39feda5 100644 --- a/openfm_qt/__init__.py +++ b/openfm_qt/__init__.py @@ -3,7 +3,7 @@ API_URL = "https://open.fm/radio/api/v2/ofm/stations_slug.json" DEFAULT_VOLUME = 70 -from .ui_main_window import Ui_MainWindow # nopep8: E402 -from .mainwindow import MainWindow # nopep8: E402 +from .ui_main_window import Ui_MainWindow # nopep8: E402 isort: skip +from .mainwindow import MainWindow # nopep8: E402 isort: skip __all__ = [Ui_MainWindow, MainWindow] diff --git a/openfm_qt/__main__.py b/openfm_qt/__main__.py index c678026..c979466 100644 --- a/openfm_qt/__main__.py +++ b/openfm_qt/__main__.py @@ -1,9 +1,11 @@ # coding=utf-8 -from PySide6.QtWidgets import QApplication -from . import MainWindow import sys +from PySide6.QtWidgets import QApplication + +from . import MainWindow + def main(): app = QApplication(sys.argv) diff --git a/openfm_qt/mainwindow.py b/openfm_qt/mainwindow.py index 82f0d9b..d4de826 100644 --- a/openfm_qt/mainwindow.py +++ b/openfm_qt/mainwindow.py @@ -1,10 +1,12 @@ # coding=utf-8 -from PySide6.QtCore import QUrl -from PySide6.QtWidgets import QMainWindow, QMessageBox, QStyle -from PySide6.QtMultimedia import QMediaPlayer, QAudioOutput import json + import requests +from PySide6.QtCore import QUrl +from PySide6.QtMultimedia import QAudioOutput, QMediaPlayer +from PySide6.QtWidgets import QMainWindow, QMessageBox, QStyle + from . import API_URL, DEFAULT_VOLUME, Ui_MainWindow diff --git a/prebuild.py b/prebuild.py index 2d95230..5d902a0 100644 --- a/prebuild.py +++ b/prebuild.py @@ -1,9 +1,9 @@ # coding=utf-8 -import sys -import os -from shutil import which import logging +import os +import sys +from shutil import which UI_DIR = "assets/ui"