|
14 | 14 | #imports |
15 | 15 | import os, sys, shutil, time, tempfile |
16 | 16 | # QT |
17 | | -from PySide2 import QtWidgets, QtCore |
18 | | -from PySide2.QtUiTools import QUiLoader |
19 | | -from PySide2.QtGui import QPixmap, QIcon, QMovie, QKeySequence |
20 | | -from PySide2.QtCore import QThreadPool, QFile,QSettings,QStandardPaths |
21 | | -from PySide2.QtWidgets import QStyle, QMessageBox, QAction, QGridLayout,QLabel, QDialog |
| 17 | +from PySide6 import QtWidgets, QtCore |
| 18 | +from PySide6.QtUiTools import QUiLoader |
| 19 | +from PySide6.QtGui import QPixmap, QIcon, QMovie, QKeySequence, QAction |
| 20 | +from PySide6.QtCore import QThreadPool, QFile,QSettings,QStandardPaths |
| 21 | +from PySide6.QtWidgets import QStyle, QMessageBox, QGridLayout,QLabel, QDialog |
22 | 22 | # Only if using qdarktheme style |
23 | 23 | import qdarktheme |
24 | 24 | # This application |
@@ -190,7 +190,7 @@ def setUpMyUI(self): |
190 | 190 |
|
191 | 191 |
|
192 | 192 | def getImagesDirectory(self): |
193 | | - from PySide2.QtCore import QStandardPaths |
| 193 | + from PySide6.QtCore import QStandardPaths |
194 | 194 | pth=QStandardPaths.PicturesLocation |
195 | 195 | sysimgfolder= str(QStandardPaths.writableLocation(pth) ) |
196 | 196 | if os.path.exists(sysimgfolder): |
@@ -636,7 +636,8 @@ def openBrowser(self, path_to_open): |
636 | 636 |
|
637 | 637 |
|
638 | 638 | def getScreenSize( self ): |
639 | | - from PySide2.QtWidgets import QApplication, QDesktopWidget |
| 639 | + from PySide6.QtWidgets import QApplication |
| 640 | + from PySide6.QtGui import QScreen |
640 | 641 | desktop = QDesktopWidget() |
641 | 642 | screen_width = desktop.screenGeometry().width() |
642 | 643 | screen_height = desktop.screenGeometry().height() |
|
0 commit comments