--- a/eric6/Utilities/BackgroundService.py Sat Mar 06 10:00:52 2021 +0100 +++ b/eric6/Utilities/BackgroundService.py Sun Mar 28 15:00:11 2021 +0200 @@ -39,9 +39,12 @@ serviceNotAvailable = pyqtSignal(str, str, str, str) batchJobDone = pyqtSignal(str, str) - def __init__(self): + def __init__(self, parent=None): """ Constructor + + @param parent reference to the parent object + @type QObject """ self.processes = {} self.connections = {} @@ -50,7 +53,7 @@ self.__queue = [] self.services = {} - super(BackgroundService, self).__init__() + super(BackgroundService, self).__init__(parent) networkInterface = Preferences.getDebugger("NetworkInterface") if networkInterface == "all" or '.' in networkInterface: @@ -93,7 +96,8 @@ getConfig('ericDir'), "Utilities", "BackgroundClient.py") proc = QProcess() - proc.setProcessChannelMode(QProcess.ForwardedChannels) + proc.setProcessChannelMode( + QProcess.ProcessChannelMode.ForwardedChannels) args = [backgroundClient, self.hostAddress, str(port), str(Preferences.getUI("BackgroundServiceProcesses"))] proc.start(interpreter, args)