Transition to QtPy

This commit is contained in:
leha-code 2022-03-23 08:59:16 -04:00
parent 4d0ea2ae1a
commit ec78c25829
No known key found for this signature in database
GPG Key ID: 15227A6455DDF7EE
2 changed files with 7 additions and 7 deletions

View File

@ -51,11 +51,11 @@ import launcher
from splashes import SPLASHES
# PyQt5 imports
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtWebKit import *
from PyQt5.QtWebKitWidgets import *
from qtpy.QtCore import *
from qtpy.QtWidgets import *
from qtpy.QtGui import *
from qtpy.QtWebEngine import *
from qtpy.QtWebEngineWidgets import *
# Additional imports
import qdarktheme # Dark style for PyQt5
@ -498,7 +498,7 @@ class Planet(QMainWindow):
return widget
def changelog_tab(self):
web = QWebView() # Create a webview object
web = QWebEngineView() # Create a webview object
web.load(QUrl().fromLocalFile(f"{absolute_path}/assets/changelog.html")) # Load the local file
# TODO: Use two different tabs for the webview

View File

@ -1,4 +1,4 @@
pyqt5
qtpy
pyqtdarktheme
pypresence
pillow