pyqt4 support

This commit is contained in:
ingvar1995 2016-05-24 21:22:21 +03:00
parent 948776c31c
commit cfdf145160
12 changed files with 52 additions and 20 deletions

View file

@ -4,7 +4,10 @@ from os import remove, rename
from time import time, sleep
from tox import Tox
import settings
from PySide import QtCore
try:
from PySide import QtCore
except ImportError:
from PyQt4 import QtCore
TOX_FILE_TRANSFER_STATE = {
@ -17,7 +20,10 @@ TOX_FILE_TRANSFER_STATE = {
class StateSignal(QtCore.QObject):
signal = QtCore.Signal(int, float) # state and progress
try:
signal = QtCore.Signal(int, float) # state and progress
except:
signal = QtCore.pyqtSignal(int, float) # state and progress - pyqt4
class FileTransfer(QtCore.QObject):