From 9a2e67a0ad6315814be6d67e89232849e0475d96 Mon Sep 17 00:00:00 2001 From: Chris Griffith Date: Sat, 26 Mar 2022 13:49:48 -0500 Subject: [PATCH] * Changing #292 back to PySide2 to be compatible with Windows 7 and 8 (thanks to Causemic) --- CHANGES | 1 + fastflix/application.py | 2 +- fastflix/encoders/av1_aom/settings_panel.py | 2 +- fastflix/encoders/avc_x264/settings_panel.py | 2 +- fastflix/encoders/common/setting_panel.py | 2 +- fastflix/encoders/copy/settings_panel.py | 2 +- fastflix/encoders/ffmpeg_hevc_nvenc/settings_panel.py | 2 +- fastflix/encoders/gif/settings_panel.py | 2 +- fastflix/encoders/hevc_x265/settings_panel.py | 2 +- fastflix/encoders/nvencc_avc/settings_panel.py | 2 +- fastflix/encoders/nvencc_hevc/settings_panel.py | 2 +- fastflix/encoders/rav1e/settings_panel.py | 2 +- fastflix/encoders/svt_av1/settings_panel.py | 2 +- fastflix/encoders/vceencc_avc/settings_panel.py | 2 +- fastflix/encoders/vceencc_hevc/settings_panel.py | 2 +- fastflix/encoders/vp9/settings_panel.py | 2 +- fastflix/encoders/webp/settings_panel.py | 2 +- fastflix/entry.py | 2 +- fastflix/models/fastflix_app.py | 2 +- fastflix/program_downloads.py | 2 +- fastflix/shared.py | 2 +- fastflix/widgets/about.py | 4 ++-- fastflix/widgets/background_tasks.py | 2 +- fastflix/widgets/changes.py | 2 +- fastflix/widgets/container.py | 4 ++-- fastflix/widgets/logs.py | 2 +- fastflix/widgets/main.py | 2 +- fastflix/widgets/panels/abstract_list.py | 2 +- fastflix/widgets/panels/advanced_panel.py | 2 +- fastflix/widgets/panels/audio_panel.py | 2 +- fastflix/widgets/panels/command_panel.py | 2 +- fastflix/widgets/panels/cover_panel.py | 2 +- fastflix/widgets/panels/debug_panel.py | 2 +- fastflix/widgets/panels/info_panel.py | 2 +- fastflix/widgets/panels/queue_panel.py | 2 +- fastflix/widgets/panels/status_panel.py | 2 +- fastflix/widgets/panels/subtitle_panel.py | 2 +- fastflix/widgets/progress_bar.py | 2 +- fastflix/widgets/settings.py | 2 +- fastflix/widgets/video_options.py | 2 +- fastflix/widgets/windows/audio_select.py | 2 +- fastflix/widgets/windows/concat.py | 2 +- fastflix/widgets/windows/large_preview.py | 2 +- fastflix/widgets/windows/profile_window.py | 2 +- 44 files changed, 46 insertions(+), 45 deletions(-) diff --git a/CHANGES b/CHANGES index bbbea503..21e71d3f 100644 --- a/CHANGES +++ b/CHANGES @@ -4,6 +4,7 @@ * Adding #313 basic vsync support for hardware encoders (thanks to Wontell) * Adding "Auto" profile for VCEncC +* Changing #292 back to PySide2 to be compatible with Windows 7 and 8 (thanks to Causemic) * Fixing profile not being passed for AVC with VCEencC and stuck on Baseline * Fixing that force 10-bit encoding for NVEencC was not set from profiles properly (thanks to wynterca) diff --git a/fastflix/application.py b/fastflix/application.py index 41b9e24f..6decb7cb 100644 --- a/fastflix/application.py +++ b/fastflix/application.py @@ -5,7 +5,7 @@ import coloredlogs import reusables -from PySide6 import QtGui, QtWidgets, QtCore +from PySide2 import QtGui, QtWidgets, QtCore from fastflix.flix import ffmpeg_audio_encoders, ffmpeg_configuration, ffprobe_configuration, ffmpeg_opencl_support from fastflix.language import t diff --git a/fastflix/encoders/av1_aom/settings_panel.py b/fastflix/encoders/av1_aom/settings_panel.py index 3c8b7e9b..72058f41 100644 --- a/fastflix/encoders/av1_aom/settings_panel.py +++ b/fastflix/encoders/av1_aom/settings_panel.py @@ -2,7 +2,7 @@ import logging from box import Box -from PySide6 import QtCore, QtWidgets +from PySide2 import QtCore, QtWidgets from fastflix.encoders.common.setting_panel import SettingPanel from fastflix.language import t diff --git a/fastflix/encoders/avc_x264/settings_panel.py b/fastflix/encoders/avc_x264/settings_panel.py index 47892a69..090a4554 100644 --- a/fastflix/encoders/avc_x264/settings_panel.py +++ b/fastflix/encoders/avc_x264/settings_panel.py @@ -2,7 +2,7 @@ import logging from box import Box -from PySide6 import QtCore, QtWidgets +from PySide2 import QtCore, QtWidgets from fastflix.encoders.common.setting_panel import SettingPanel from fastflix.language import t diff --git a/fastflix/encoders/common/setting_panel.py b/fastflix/encoders/common/setting_panel.py index 7a6fcce7..a95b31cc 100644 --- a/fastflix/encoders/common/setting_panel.py +++ b/fastflix/encoders/common/setting_panel.py @@ -4,7 +4,7 @@ from pathlib import Path from box import Box -from PySide6 import QtGui, QtWidgets, QtCore +from PySide2 import QtGui, QtWidgets, QtCore from fastflix.exceptions import FastFlixInternalException from fastflix.language import t diff --git a/fastflix/encoders/copy/settings_panel.py b/fastflix/encoders/copy/settings_panel.py index f82fb1ed..a86e7634 100644 --- a/fastflix/encoders/copy/settings_panel.py +++ b/fastflix/encoders/copy/settings_panel.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- import logging -from PySide6 import QtWidgets +from PySide2 import QtWidgets from fastflix.encoders.common.setting_panel import SettingPanel from fastflix.language import t diff --git a/fastflix/encoders/ffmpeg_hevc_nvenc/settings_panel.py b/fastflix/encoders/ffmpeg_hevc_nvenc/settings_panel.py index 929d4856..d2a68ece 100644 --- a/fastflix/encoders/ffmpeg_hevc_nvenc/settings_panel.py +++ b/fastflix/encoders/ffmpeg_hevc_nvenc/settings_panel.py @@ -2,7 +2,7 @@ import logging from box import Box -from PySide6 import QtCore, QtWidgets +from PySide2 import QtCore, QtWidgets from fastflix.encoders.common.setting_panel import SettingPanel from fastflix.language import t diff --git a/fastflix/encoders/gif/settings_panel.py b/fastflix/encoders/gif/settings_panel.py index e4450239..76f1d371 100644 --- a/fastflix/encoders/gif/settings_panel.py +++ b/fastflix/encoders/gif/settings_panel.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- from box import Box -from PySide6 import QtWidgets +from PySide2 import QtWidgets from fastflix.encoders.common.setting_panel import SettingPanel from fastflix.models.encode import GIFSettings diff --git a/fastflix/encoders/hevc_x265/settings_panel.py b/fastflix/encoders/hevc_x265/settings_panel.py index 04920281..34996a43 100644 --- a/fastflix/encoders/hevc_x265/settings_panel.py +++ b/fastflix/encoders/hevc_x265/settings_panel.py @@ -4,7 +4,7 @@ from pathlib import Path from box import Box -from PySide6 import QtCore, QtGui, QtWidgets +from PySide2 import QtCore, QtGui, QtWidgets from fastflix.encoders.common.setting_panel import SettingPanel from fastflix.language import t diff --git a/fastflix/encoders/nvencc_avc/settings_panel.py b/fastflix/encoders/nvencc_avc/settings_panel.py index dcba0bcd..0f44dddc 100644 --- a/fastflix/encoders/nvencc_avc/settings_panel.py +++ b/fastflix/encoders/nvencc_avc/settings_panel.py @@ -3,7 +3,7 @@ from typing import List, Optional from box import Box -from PySide6 import QtCore, QtWidgets, QtGui +from PySide2 import QtCore, QtWidgets, QtGui from fastflix.encoders.common.setting_panel import SettingPanel from fastflix.language import t diff --git a/fastflix/encoders/nvencc_hevc/settings_panel.py b/fastflix/encoders/nvencc_hevc/settings_panel.py index 4239b351..e9ef3231 100644 --- a/fastflix/encoders/nvencc_hevc/settings_panel.py +++ b/fastflix/encoders/nvencc_hevc/settings_panel.py @@ -3,7 +3,7 @@ from typing import List, Optional from box import Box -from PySide6 import QtCore, QtWidgets, QtGui +from PySide2 import QtCore, QtWidgets, QtGui from fastflix.encoders.common.setting_panel import SettingPanel from fastflix.language import t diff --git a/fastflix/encoders/rav1e/settings_panel.py b/fastflix/encoders/rav1e/settings_panel.py index fe07dae4..28006697 100644 --- a/fastflix/encoders/rav1e/settings_panel.py +++ b/fastflix/encoders/rav1e/settings_panel.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- import logging -from PySide6 import QtCore, QtWidgets +from PySide2 import QtCore, QtWidgets from fastflix.encoders.common.setting_panel import SettingPanel from fastflix.language import t diff --git a/fastflix/encoders/svt_av1/settings_panel.py b/fastflix/encoders/svt_av1/settings_panel.py index 81a6dcf0..7313908c 100644 --- a/fastflix/encoders/svt_av1/settings_panel.py +++ b/fastflix/encoders/svt_av1/settings_panel.py @@ -3,7 +3,7 @@ import logging from box import Box -from PySide6 import QtCore, QtWidgets +from PySide2 import QtCore, QtWidgets from fastflix.encoders.common.setting_panel import SettingPanel from fastflix.language import t diff --git a/fastflix/encoders/vceencc_avc/settings_panel.py b/fastflix/encoders/vceencc_avc/settings_panel.py index e2ec5f3d..2aaf2ee0 100644 --- a/fastflix/encoders/vceencc_avc/settings_panel.py +++ b/fastflix/encoders/vceencc_avc/settings_panel.py @@ -2,7 +2,7 @@ import logging from box import Box -from PySide6 import QtCore, QtWidgets, QtGui +from PySide2 import QtCore, QtWidgets, QtGui from fastflix.encoders.common.setting_panel import SettingPanel from fastflix.language import t diff --git a/fastflix/encoders/vceencc_hevc/settings_panel.py b/fastflix/encoders/vceencc_hevc/settings_panel.py index 7c8378a2..12f54b26 100644 --- a/fastflix/encoders/vceencc_hevc/settings_panel.py +++ b/fastflix/encoders/vceencc_hevc/settings_panel.py @@ -2,7 +2,7 @@ import logging from box import Box -from PySide6 import QtCore, QtWidgets, QtGui +from PySide2 import QtCore, QtWidgets, QtGui from fastflix.encoders.common.setting_panel import SettingPanel from fastflix.language import t diff --git a/fastflix/encoders/vp9/settings_panel.py b/fastflix/encoders/vp9/settings_panel.py index ae63bde3..ea1a6b34 100644 --- a/fastflix/encoders/vp9/settings_panel.py +++ b/fastflix/encoders/vp9/settings_panel.py @@ -2,7 +2,7 @@ import logging from box import Box -from PySide6 import QtCore, QtWidgets +from PySide2 import QtCore, QtWidgets from fastflix.encoders.common.setting_panel import SettingPanel from fastflix.language import t diff --git a/fastflix/encoders/webp/settings_panel.py b/fastflix/encoders/webp/settings_panel.py index 53205542..68fd683a 100644 --- a/fastflix/encoders/webp/settings_panel.py +++ b/fastflix/encoders/webp/settings_panel.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- from box import Box -from PySide6 import QtWidgets +from PySide2 import QtWidgets from fastflix.encoders.common.setting_panel import SettingPanel from fastflix.models.encode import WebPSettings diff --git a/fastflix/entry.py b/fastflix/entry.py index 9cfd6ef2..3e04d9cf 100644 --- a/fastflix/entry.py +++ b/fastflix/entry.py @@ -49,7 +49,7 @@ def startup_options(): import coloredlogs import iso639 import mistune - import PySide6 + import PySide2 import requests import reusables import ruamel.yaml diff --git a/fastflix/models/fastflix_app.py b/fastflix/models/fastflix_app.py index 18c213a7..7ae2c7ce 100644 --- a/fastflix/models/fastflix_app.py +++ b/fastflix/models/fastflix_app.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -from PySide6 import QtWidgets +from PySide2 import QtWidgets from fastflix.models.fastflix import FastFlix diff --git a/fastflix/program_downloads.py b/fastflix/program_downloads.py index 22af2d60..c46b590b 100644 --- a/fastflix/program_downloads.py +++ b/fastflix/program_downloads.py @@ -9,7 +9,7 @@ import requests import reusables from appdirs import user_data_dir -from PySide6 import QtWidgets +from PySide2 import QtWidgets from fastflix.language import t from fastflix.shared import message diff --git a/fastflix/shared.py b/fastflix/shared.py index 39c08869..93bdfcd2 100644 --- a/fastflix/shared.py +++ b/fastflix/shared.py @@ -24,7 +24,7 @@ base_path = os.path.abspath(".") pyinstaller = False -from PySide6 import QtCore, QtGui, QtWidgets +from PySide2 import QtCore, QtGui, QtWidgets from fastflix.language import t from fastflix.resources import get_bool_env diff --git a/fastflix/widgets/about.py b/fastflix/widgets/about.py index c5fc0c46..51f12cfe 100644 --- a/fastflix/widgets/about.py +++ b/fastflix/widgets/about.py @@ -4,7 +4,7 @@ import reusables from box import __version__ as box_version -from PySide6 import QtCore, QtGui, QtWidgets +from PySide2 import QtCore, QtGui, QtWidgets from fastflix.language import t from fastflix.shared import base_path, link, pyinstaller @@ -62,7 +62,7 @@ def __init__(self, app): f"{link('https://github.com/cdgriffith/Reusables', t('Reusables'), app.fastflix.config.theme)} {reusables.__version__} (MIT)
" "mistune (BSD), colorama (BSD), coloredlogs (MIT), Requests (Apache 2.0)
" "appdirs (MIT), iso639-lang (MIT), psutil (BSD), pathvalidate (MIT)
" - "BreezeStyleSheets (MIT), PySide6 (LGPL)" + "BreezeStyleSheets (MIT), PySide2 (LGPL)" ) supporting_libraries_label.setAlignment(QtCore.Qt.AlignCenter) supporting_libraries_label.setOpenExternalLinks(True) diff --git a/fastflix/widgets/background_tasks.py b/fastflix/widgets/background_tasks.py index 1ce35869..11de4d90 100644 --- a/fastflix/widgets/background_tasks.py +++ b/fastflix/widgets/background_tasks.py @@ -5,7 +5,7 @@ from subprocess import PIPE, STDOUT, Popen, run, check_output from distutils.version import LooseVersion -from PySide6 import QtCore +from PySide2 import QtCore from fastflix.language import t from fastflix.models.fastflix_app import FastFlixApp diff --git a/fastflix/widgets/changes.py b/fastflix/widgets/changes.py index 185da7d2..46338af5 100644 --- a/fastflix/widgets/changes.py +++ b/fastflix/widgets/changes.py @@ -3,7 +3,7 @@ import re import mistune -from PySide6 import QtCore, QtWidgets +from PySide2 import QtCore, QtWidgets from fastflix.resources import changes_file, local_changes_file diff --git a/fastflix/widgets/container.py b/fastflix/widgets/container.py index 06186830..2a3eb1b2 100644 --- a/fastflix/widgets/container.py +++ b/fastflix/widgets/container.py @@ -9,8 +9,8 @@ import reusables from appdirs import user_data_dir -from PySide6 import QtCore, QtGui, QtWidgets -from PySide6.QtGui import QAction +from PySide2 import QtCore, QtGui, QtWidgets +from PySide2.QtWidgets import QAction from fastflix.exceptions import FastFlixInternalException from fastflix.language import t diff --git a/fastflix/widgets/logs.py b/fastflix/widgets/logs.py index 1016aa84..de6e66b3 100644 --- a/fastflix/widgets/logs.py +++ b/fastflix/widgets/logs.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- import logging -from PySide6 import QtWidgets +from PySide2 import QtWidgets __all__ = ["Logs"] diff --git a/fastflix/widgets/main.py b/fastflix/widgets/main.py index 8e60250c..03061f2c 100644 --- a/fastflix/widgets/main.py +++ b/fastflix/widgets/main.py @@ -17,7 +17,7 @@ import reusables from box import Box from pydantic import BaseModel, Field -from PySide6 import QtCore, QtGui, QtWidgets +from PySide2 import QtCore, QtGui, QtWidgets from fastflix.encoders.common import helpers from fastflix.exceptions import FastFlixInternalException, FlixError diff --git a/fastflix/widgets/panels/abstract_list.py b/fastflix/widgets/panels/abstract_list.py index f18c5e38..59d780f2 100644 --- a/fastflix/widgets/panels/abstract_list.py +++ b/fastflix/widgets/panels/abstract_list.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- from box import Box -from PySide6 import QtCore, QtGui, QtWidgets +from PySide2 import QtCore, QtGui, QtWidgets from fastflix.language import t from fastflix.models.fastflix_app import FastFlixApp diff --git a/fastflix/widgets/panels/advanced_panel.py b/fastflix/widgets/panels/advanced_panel.py index de8f69c0..17e41e54 100644 --- a/fastflix/widgets/panels/advanced_panel.py +++ b/fastflix/widgets/panels/advanced_panel.py @@ -4,7 +4,7 @@ import logging from box import Box -from PySide6 import QtCore, QtGui, QtWidgets +from PySide2 import QtCore, QtGui, QtWidgets from fastflix.language import t from fastflix.models.fastflix_app import FastFlixApp diff --git a/fastflix/widgets/panels/audio_panel.py b/fastflix/widgets/panels/audio_panel.py index f0df2c1d..2083dfb8 100644 --- a/fastflix/widgets/panels/audio_panel.py +++ b/fastflix/widgets/panels/audio_panel.py @@ -6,7 +6,7 @@ from box import Box from iso639 import Lang from iso639.exceptions import InvalidLanguageValue -from PySide6 import QtCore, QtGui, QtWidgets +from PySide2 import QtCore, QtGui, QtWidgets from fastflix.encoders.common.audio import lossless, channel_list from fastflix.language import t diff --git a/fastflix/widgets/panels/command_panel.py b/fastflix/widgets/panels/command_panel.py index a378f976..f6fe8969 100644 --- a/fastflix/widgets/panels/command_panel.py +++ b/fastflix/widgets/panels/command_panel.py @@ -5,7 +5,7 @@ from pathlib import Path import reusables -from PySide6 import QtCore, QtGui, QtWidgets +from PySide2 import QtCore, QtGui, QtWidgets from fastflix.language import t from fastflix.models.fastflix_app import FastFlixApp diff --git a/fastflix/widgets/panels/cover_panel.py b/fastflix/widgets/panels/cover_panel.py index a851c267..fafaacad 100644 --- a/fastflix/widgets/panels/cover_panel.py +++ b/fastflix/widgets/panels/cover_panel.py @@ -7,7 +7,7 @@ from typing import List, Tuple, Union from box import Box -from PySide6 import QtCore, QtGui, QtWidgets +from PySide2 import QtCore, QtGui, QtWidgets from fastflix.language import t from fastflix.models.encode import AttachmentTrack diff --git a/fastflix/widgets/panels/debug_panel.py b/fastflix/widgets/panels/debug_panel.py index 0805c86f..339c3035 100644 --- a/fastflix/widgets/panels/debug_panel.py +++ b/fastflix/widgets/panels/debug_panel.py @@ -5,7 +5,7 @@ from typing import Union from box import Box, BoxList -from PySide6 import QtCore, QtGui, QtWidgets +from PySide2 import QtCore, QtGui, QtWidgets from fastflix.models.fastflix_app import FastFlixApp from fastflix.shared import DEVMODE diff --git a/fastflix/widgets/panels/info_panel.py b/fastflix/widgets/panels/info_panel.py index a798415f..bae98b61 100644 --- a/fastflix/widgets/panels/info_panel.py +++ b/fastflix/widgets/panels/info_panel.py @@ -8,7 +8,7 @@ from typing import List, Union from box import Box, BoxList -from PySide6 import QtCore, QtGui, QtWidgets +from PySide2 import QtCore, QtGui, QtWidgets from fastflix.language import t from fastflix.models.encode import AttachmentTrack diff --git a/fastflix/widgets/panels/queue_panel.py b/fastflix/widgets/panels/queue_panel.py index a50227f1..a51ff497 100644 --- a/fastflix/widgets/panels/queue_panel.py +++ b/fastflix/widgets/panels/queue_panel.py @@ -7,7 +7,7 @@ import reusables from box import Box -from PySide6 import QtCore, QtGui, QtWidgets +from PySide2 import QtCore, QtGui, QtWidgets from fastflix.language import t from fastflix.models.fastflix_app import FastFlixApp diff --git a/fastflix/widgets/panels/status_panel.py b/fastflix/widgets/panels/status_panel.py index e6f0f3d5..29d62691 100644 --- a/fastflix/widgets/panels/status_panel.py +++ b/fastflix/widgets/panels/status_panel.py @@ -6,7 +6,7 @@ from datetime import timedelta from typing import Optional -from PySide6 import QtCore, QtWidgets +from PySide2 import QtCore, QtWidgets from fastflix.exceptions import FlixError from fastflix.language import t diff --git a/fastflix/widgets/panels/subtitle_panel.py b/fastflix/widgets/panels/subtitle_panel.py index 7f2d1635..4aea658e 100644 --- a/fastflix/widgets/panels/subtitle_panel.py +++ b/fastflix/widgets/panels/subtitle_panel.py @@ -5,7 +5,7 @@ from box import Box from iso639 import Lang from iso639.exceptions import InvalidLanguageValue -from PySide6 import QtCore, QtGui, QtWidgets +from PySide2 import QtCore, QtGui, QtWidgets from fastflix.exceptions import FastFlixInternalException from fastflix.language import t diff --git a/fastflix/widgets/progress_bar.py b/fastflix/widgets/progress_bar.py index 2c462e4c..cd5ed28e 100644 --- a/fastflix/widgets/progress_bar.py +++ b/fastflix/widgets/progress_bar.py @@ -4,7 +4,7 @@ from typing import Callable, Dict, List import reusables -from PySide6 import QtCore, QtWidgets +from PySide2 import QtCore, QtWidgets from fastflix.language import t diff --git a/fastflix/widgets/settings.py b/fastflix/widgets/settings.py index 49aed9b4..0025711c 100644 --- a/fastflix/widgets/settings.py +++ b/fastflix/widgets/settings.py @@ -6,7 +6,7 @@ from iso639 import Lang from iso639.exceptions import InvalidLanguageValue -from PySide6 import QtCore, QtGui, QtWidgets +from PySide2 import QtCore, QtGui, QtWidgets from fastflix.exceptions import FastFlixInternalException from fastflix.language import t diff --git a/fastflix/widgets/video_options.py b/fastflix/widgets/video_options.py index 17286095..dc9e2237 100644 --- a/fastflix/widgets/video_options.py +++ b/fastflix/widgets/video_options.py @@ -3,7 +3,7 @@ import copy import logging -from PySide6 import QtGui, QtWidgets, QtCore +from PySide2 import QtGui, QtWidgets, QtCore from fastflix.language import t from fastflix.models.fastflix_app import FastFlixApp diff --git a/fastflix/widgets/windows/audio_select.py b/fastflix/widgets/windows/audio_select.py index 22310c54..bc813a95 100644 --- a/fastflix/widgets/windows/audio_select.py +++ b/fastflix/widgets/windows/audio_select.py @@ -5,7 +5,7 @@ from typing import Optional import secrets -from PySide6 import QtWidgets, QtCore, QtGui +from PySide2 import QtWidgets, QtCore, QtGui from fastflix.flix import ( generate_thumbnail_command, diff --git a/fastflix/widgets/windows/concat.py b/fastflix/widgets/windows/concat.py index 761d5a51..3d5d1d7b 100644 --- a/fastflix/widgets/windows/concat.py +++ b/fastflix/widgets/windows/concat.py @@ -3,7 +3,7 @@ import os import logging -from PySide6 import QtWidgets, QtGui, QtCore +from PySide2 import QtWidgets, QtGui, QtCore from fastflix.language import t from fastflix.flix import probe diff --git a/fastflix/widgets/windows/large_preview.py b/fastflix/widgets/windows/large_preview.py index b30f1949..7c14a7a8 100644 --- a/fastflix/widgets/windows/large_preview.py +++ b/fastflix/widgets/windows/large_preview.py @@ -5,7 +5,7 @@ from typing import Optional import secrets -from PySide6 import QtWidgets, QtCore, QtGui +from PySide2 import QtWidgets, QtCore, QtGui from fastflix.flix import ( generate_thumbnail_command, diff --git a/fastflix/widgets/windows/profile_window.py b/fastflix/widgets/windows/profile_window.py index c5a9cc42..14502535 100644 --- a/fastflix/widgets/windows/profile_window.py +++ b/fastflix/widgets/windows/profile_window.py @@ -4,7 +4,7 @@ from box import Box from iso639 import Lang -from PySide6 import QtCore, QtGui, QtWidgets +from PySide2 import QtCore, QtGui, QtWidgets from fastflix.flix import ffmpeg_valid_color_primaries, ffmpeg_valid_color_transfers, ffmpeg_valid_color_space from fastflix.language import t