mirror of
https://github.com/onionshare/onionshare.git
synced 2025-09-26 19:11:00 -04:00
Use QtPy instead of directly PySide6.
This commit is contained in:
parent
28d9ef17c3
commit
5bd00429f7
31 changed files with 34 additions and 34 deletions
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from PySide6 import QtCore, QtWidgets, QtGui
|
||||
from qtpy import QtCore, QtWidgets, QtGui
|
||||
|
||||
from onionshare_cli.mode_settings import ModeSettings
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import requests
|
||||
|
||||
from PySide6 import QtTest
|
||||
from qtpy import QtTest
|
||||
|
||||
from .gui_base_test import GuiBaseTest
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import os
|
||||
|
||||
from PySide6 import QtCore, QtTest, QtWidgets
|
||||
from qtpy import QtCore, QtTest, QtWidgets
|
||||
|
||||
from .gui_base_test import GuiBaseTest
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import requests
|
||||
|
||||
from PySide6 import QtTest
|
||||
from qtpy import QtTest
|
||||
|
||||
from .gui_base_test import GuiBaseTest
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue