From 6f7bca792d38b1c583a8c7db4b42ae0f384e27d3 Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Mon, 10 Jul 2023 02:01:43 +0200 Subject: [PATCH] Rename .ui files --- .gitignore | 1 + openfm_qt/__init__.py | 2 +- openfm_qt/mainwindow.py | 5 ----- ui/{form.ui => main_window.ui} | 0 4 files changed, 2 insertions(+), 6 deletions(-) rename ui/{form.ui => main_window.ui} (100%) 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