Use QtPy instead of directly PySide6.

This commit is contained in:
Sandro Knauß 2024-03-06 03:38:26 +01:00
parent 28d9ef17c3
commit 5bd00429f7
31 changed files with 34 additions and 34 deletions

View file

@ -26,10 +26,10 @@ import signal
import json
import psutil
import getpass
from PySide6 import QtCore, QtWidgets, QtGui
from qtpy import QtCore, QtWidgets, QtGui
from PySide6.QtCore import Slot, Qt
from PySide6.QtGui import QPalette, QColor
from qtpy.QtCore import Slot, Qt
from qtpy.QtGui import QPalette, QColor
from onionshare_cli.common import Common
from onionshare_cli.settings import Settings

View file

@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
import json
import os
from PySide6 import QtCore, QtWidgets, QtGui
from qtpy import QtCore, QtWidgets, QtGui
from onionshare_cli.censorship import (
CensorshipCircumvention,

View file

@ -21,7 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
import shutil
from pkg_resources import resource_filename
from PySide6 import QtCore, QtWidgets, QtGui
from qtpy import QtCore, QtWidgets, QtGui
from . import strings
from onionshare_cli.onion import (

View file

@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
import time
from PySide6 import QtCore, QtWidgets, QtGui
from qtpy import QtCore, QtWidgets, QtGui
from . import strings
from .widgets import Alert

View file

@ -18,7 +18,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
from PySide6 import QtCore, QtWidgets, QtGui
from qtpy import QtCore, QtWidgets, QtGui
import requests
import os
import base64

View file

@ -1,4 +1,4 @@
from PySide6 import QtCore, QtWidgets, QtGui
from qtpy import QtCore, QtWidgets, QtGui
from onionshare_cli.mode_settings import ModeSettings

View file

@ -18,7 +18,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
from PySide6 import QtCore, QtWidgets, QtGui
from qtpy import QtCore, QtWidgets, QtGui
import platform
import datetime
from onionshare_cli.settings import Settings

View file

@ -18,7 +18,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
from PySide6 import QtCore, QtWidgets
from qtpy import QtCore, QtWidgets
from onionshare_cli.common import AutoStopTimer

View file

@ -18,7 +18,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
from PySide6 import QtCore, QtWidgets, QtGui
from qtpy import QtCore, QtWidgets, QtGui
from onionshare_cli.web import Web

View file

@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import os
from PySide6 import QtCore, QtWidgets, QtGui
from qtpy import QtCore, QtWidgets, QtGui
from ... import strings
from ...widgets import Alert, AddFileDialog

View file

@ -22,7 +22,7 @@ import time
import subprocess
import os
from datetime import datetime
from PySide6 import QtCore, QtWidgets, QtGui
from qtpy import QtCore, QtWidgets, QtGui
from ... import strings
from ...widgets import Alert

View file

@ -18,7 +18,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
from PySide6 import QtCore, QtWidgets
from qtpy import QtCore, QtWidgets
from ... import strings

View file

@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import os
from PySide6 import QtCore, QtWidgets, QtGui
from qtpy import QtCore, QtWidgets, QtGui
from onionshare_cli.web import Web

View file

@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import os
from PySide6 import QtCore, QtWidgets, QtGui
from qtpy import QtCore, QtWidgets, QtGui
from onionshare_cli.common import Common
from onionshare_cli.web import Web

View file

@ -18,7 +18,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
from PySide6 import QtCore
from qtpy import QtCore
class CompressThread(QtCore.QThread):

View file

@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
from PySide6 import QtCore, QtWidgets, QtGui
from qtpy import QtCore, QtWidgets, QtGui
from onionshare_cli.common import Common
from onionshare_cli.web import Web

View file

@ -18,8 +18,8 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import textwrap
from PySide6 import QtCore, QtWidgets, QtGui
from PySide6.QtCore import Qt
from qtpy import QtCore, QtWidgets, QtGui
from qtpy.QtCore import Qt
from .. import strings
from ..widgets import Alert

View file

@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import queue
from PySide6 import QtCore, QtWidgets, QtGui
from qtpy import QtCore, QtWidgets, QtGui
from onionshare_cli.onionshare import OnionShare
from onionshare_cli.web import Web

View file

@ -18,7 +18,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
from PySide6 import QtCore, QtWidgets, QtGui
from qtpy import QtCore, QtWidgets, QtGui
from onionshare_cli.mode_settings import ModeSettings

View file

@ -21,7 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
import time
import json
import os
from PySide6 import QtCore
from qtpy import QtCore
from onionshare_cli.onion import (
TorErrorInvalidSetting,

View file

@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import time
from PySide6 import QtCore, QtWidgets
from qtpy import QtCore, QtWidgets
from onionshare_cli.onion import (
BundledTorCanceled,

View file

@ -18,7 +18,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
from PySide6 import QtCore, QtWidgets, QtGui
from qtpy import QtCore, QtWidgets, QtGui
import sys
import platform
import os

View file

@ -18,7 +18,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
from PySide6 import QtCore
from qtpy import QtCore
import datetime
import re
import socks

View file

@ -18,7 +18,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
from PySide6 import QtCore, QtWidgets, QtGui
from qtpy import QtCore, QtWidgets, QtGui
import qrcode
from . import strings

View file

@ -2,7 +2,7 @@ import sys
import os
from datetime import datetime, timedelta
from PySide6 import QtTest
from qtpy import QtTest
# Force tests to look for resources in the source code tree

View file

@ -7,7 +7,7 @@ import secrets
import platform
import sys
from PySide6 import QtCore, QtTest, QtWidgets
from qtpy import QtCore, QtTest, QtWidgets
from onionshare_cli.common import Common

View file

@ -1,6 +1,6 @@
import requests
from PySide6 import QtTest
from qtpy import QtTest
from .gui_base_test import GuiBaseTest

View file

@ -6,7 +6,7 @@ import shutil
import sys
from datetime import datetime, timedelta
from PySide6 import QtCore, QtTest
from qtpy import QtCore, QtTest
from .gui_base_test import GuiBaseTest

View file

@ -3,7 +3,7 @@ import requests
import tempfile
import zipfile
from PySide6 import QtCore, QtTest
from qtpy import QtCore, QtTest
from .gui_base_test import GuiBaseTest

View file

@ -1,6 +1,6 @@
import os
from PySide6 import QtCore, QtTest, QtWidgets
from qtpy import QtCore, QtTest, QtWidgets
from .gui_base_test import GuiBaseTest

View file

@ -1,6 +1,6 @@
import requests
from PySide6 import QtTest
from qtpy import QtTest
from .gui_base_test import GuiBaseTest