Skip to content

Commit

Permalink
Upgrade to pyside6
Browse files Browse the repository at this point in the history
  • Loading branch information
ozankaraali committed May 26, 2024
1 parent 81f8bc0 commit 4a2c514
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 20 deletions.
8 changes: 4 additions & 4 deletions channel_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import subprocess

import requests
from PyQt5.QtCore import pyqtSignal
from PyQt5.QtWidgets import (
from PySide6.QtCore import Signal
from PySide6.QtWidgets import (
QMainWindow,
QFileDialog,
QVBoxLayout,
Expand All @@ -21,14 +21,14 @@
QLineEdit,
QGridLayout,
)
from PyQt5.QtGui import QIcon
from PySide6.QtGui import QIcon
from urlobject import URLObject

from options import OptionsDialog


class ChannelList(QMainWindow):
channels_loaded = pyqtSignal(list)
channels_loaded = Signal(list)

def __init__(self, app, player, config_manager):
super().__init__()
Expand Down
2 changes: 1 addition & 1 deletion config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


class ConfigManager:
CURRENT_VERSION = "1.1.3" # Set your current version here
CURRENT_VERSION = "1.1.4" # Set your current version here

def __init__(self):
self.config = {}
Expand Down
8 changes: 4 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys
import qdarktheme
from PyQt5.QtWidgets import QApplication
# import qdarktheme
from PySide6.QtWidgets import QApplication

from video_player import VideoPlayer
from channel_list import ChannelList
Expand All @@ -12,8 +12,8 @@
config_manager = ConfigManager()
player = VideoPlayer(config_manager)
channel_list = ChannelList(app, player, config_manager)
qdarktheme.setup_theme("auto")
# qdarktheme.setup_theme("auto")
player.show()
channel_list.show()
check_for_updates()
sys.exit(app.exec_())
sys.exit(app.exec())
2 changes: 1 addition & 1 deletion options.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from PyQt5.QtWidgets import (
from PySide6.QtWidgets import (
QFileDialog,
QPushButton,
QLineEdit,
Expand Down
9 changes: 3 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
PyQt5
PyQt5-Qt5
PyQt5-sip
PyQt5-stubs
python-vlc==3.0.20123
requests==2.31.0
urllib3==1.26.6
URLObject
URLObject~=2.4.3
m3u-parser
pyqtdarktheme==2.1.0
#pyqtdarktheme==2.1.0
PySide6~=6.7.1
2 changes: 1 addition & 1 deletion update_checker.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import requests
from PyQt5.QtWidgets import QMessageBox
from PySide6.QtWidgets import QMessageBox
from config_manager import ConfigManager


Expand Down
6 changes: 3 additions & 3 deletions video_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import sys

import vlc
from PyQt5.QtCore import Qt, QEvent
from PyQt5.QtWidgets import QMainWindow, QFrame, QHBoxLayout
from PyQt5.QtGui import QIcon
from PySide6.QtCore import Qt, QEvent
from PySide6.QtWidgets import QMainWindow, QFrame, QHBoxLayout
from PySide6.QtGui import QIcon


class VideoPlayer(QMainWindow):
Expand Down

0 comments on commit 4a2c514

Please sign in to comment.