kopia lustrzana https://github.com/corrscope/corrscope
Replace PyQt5 with qtpy (doesn't work)
rodzic
5fb2edc09a
commit
dbfd884347
|
@ -8,11 +8,11 @@ from pathlib import Path
|
|||
from types import MethodType
|
||||
from typing import Optional, List, Any, Tuple, Callable, Union, Dict, Sequence, NewType
|
||||
|
||||
import PyQt5.QtCore as qc
|
||||
import PyQt5.QtWidgets as qw
|
||||
import qtpy.QtCore as qc
|
||||
import qtpy.QtWidgets as qw
|
||||
import attr
|
||||
from PyQt5.QtCore import QModelIndex, Qt, QVariant
|
||||
from PyQt5.QtGui import QFont, QCloseEvent, QDesktopServices
|
||||
from qtpy.QtCore import QModelIndex, Qt, QVariant
|
||||
from qtpy.QtGui import QFont, QCloseEvent, QDesktopServices
|
||||
|
||||
import corrscope
|
||||
import corrscope.settings.global_prefs as gp
|
||||
|
|
|
@ -2,7 +2,7 @@ import os.path
|
|||
from pathlib import Path
|
||||
from typing import *
|
||||
|
||||
import PyQt5.QtWidgets as qw
|
||||
import qtpy.QtWidgets as qw
|
||||
import attr
|
||||
|
||||
import corrscope.settings.global_prefs as _gp
|
||||
|
|
|
@ -4,10 +4,10 @@ from collections import defaultdict
|
|||
from typing import *
|
||||
|
||||
import attr
|
||||
from PyQt5 import QtWidgets as qw, QtCore as qc
|
||||
from PyQt5.QtCore import pyqtSlot
|
||||
from PyQt5.QtGui import QPalette, QColor, QFont
|
||||
from PyQt5.QtWidgets import QWidget
|
||||
from qtpy import QtWidgets as qw, QtCore as qc
|
||||
from qtpy.QtCore import pyqtSlot
|
||||
from qtpy.QtGui import QPalette, QColor, QFont
|
||||
from qtpy.QtWidgets import QWidget
|
||||
|
||||
from corrscope.config import CorrError, DumpableAttrs, get_units
|
||||
from corrscope.gui.util import color2hex
|
||||
|
|
|
@ -4,8 +4,8 @@ from operator import itemgetter
|
|||
from typing import TypeVar, Iterable, Generic, Tuple, Any, Optional
|
||||
|
||||
import matplotlib.colors
|
||||
from PyQt5.QtCore import QMutex
|
||||
from PyQt5.QtWidgets import QErrorMessage, QWidget
|
||||
from qtpy.QtCore import QMutex
|
||||
from qtpy.QtWidgets import QErrorMessage, QWidget
|
||||
|
||||
from corrscope.config import CorrError
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from contextlib import contextmanager
|
||||
|
||||
from PyQt5.QtCore import *
|
||||
from PyQt5.QtWidgets import *
|
||||
from qtpy.QtCore import *
|
||||
from qtpy.QtWidgets import *
|
||||
|
||||
from corrscope.gui.view_stack import (
|
||||
LayoutStack,
|
||||
|
|
|
@ -2,8 +2,8 @@ from contextlib import contextmanager
|
|||
from typing import *
|
||||
|
||||
import attr
|
||||
from PyQt5.QtCore import QObject, Qt
|
||||
from PyQt5.QtWidgets import *
|
||||
from qtpy.QtCore import QObject, Qt
|
||||
from qtpy.QtWidgets import *
|
||||
|
||||
from corrscope.util import obj_name
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
from typing import TYPE_CHECKING, List, Callable
|
||||
|
||||
from PyQt5 import QtWidgets as qw, QtCore as qc
|
||||
from PyQt5.QtCore import Qt
|
||||
from PyQt5.QtGui import QKeySequence
|
||||
from PyQt5.QtWidgets import QShortcut
|
||||
from qtpy import QtWidgets as qw, QtCore as qc
|
||||
from qtpy.QtCore import Qt
|
||||
from qtpy.QtGui import QKeySequence
|
||||
from qtpy.QtWidgets import QShortcut
|
||||
|
||||
from corrscope.gui.util import find_ranges
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import PyQt5.QtWidgets as qw
|
||||
import qtpy.QtWidgets as qw
|
||||
|
||||
from corrscope import gui
|
||||
from corrscope.corrscope import template_config
|
||||
|
|
Ładowanie…
Reference in New Issue