diff --git a/.gitignore b/.gitignore index 165da82..6f18d43 100644 --- a/.gitignore +++ b/.gitignore @@ -72,6 +72,7 @@ __pycache__/ *.pyc dist/* build/* +ui_*.py # Binaries # -------- diff --git a/openfm_qt/__init__.py b/openfm_qt/__init__.py index c0f4869..b2f385b 100644 --- a/openfm_qt/__init__.py +++ b/openfm_qt/__init__.py @@ -3,5 +3,5 @@ API_URL = "https://open.fm/radio/api/v2/ofm/stations_slug.json" DEFAULT_VOLUME = 70 -from .ui_form import Ui_MainWindow +from .ui_main_window import Ui_MainWindow from .mainwindow import MainWindow diff --git a/openfm_qt/mainwindow.py b/openfm_qt/mainwindow.py index 1f4f309..d988db2 100644 --- a/openfm_qt/mainwindow.py +++ b/openfm_qt/mainwindow.py @@ -3,11 +3,6 @@ from PySide6.QtCore import QUrl from PySide6.QtWidgets import QMainWindow, QMessageBox, QStyle from PySide6.QtMultimedia import QMediaPlayer, QAudioOutput - -# Important: -# You need to run the following command to generate the ui_form.py file -# pyside6-uic form.ui -o ui_form.py, or -# pyside2-uic form.ui -o ui_form.py import json import requests from . import API_URL, DEFAULT_VOLUME, Ui_MainWindow diff --git a/ui/form.ui b/ui/main_window.ui similarity index 100% rename from ui/form.ui rename to ui/main_window.ui