Cooperation/CooperationClient.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 3057
10516539f238
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing the client of the cooperation package. 7 Module implementing the client of the cooperation package.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 import collections 12 import collections
11 13
12 from PyQt4.QtCore import QObject, pyqtSignal, QProcess, QRegExp 14 from PyQt4.QtCore import QObject, pyqtSignal, QProcess, QRegExp
13 from PyQt4.QtNetwork import QHostInfo, QHostAddress, QAbstractSocket, QNetworkInterface 15 from PyQt4.QtNetwork import QHostInfo, QHostAddress, QAbstractSocket, QNetworkInterface
42 """ 44 """
43 Constructor 45 Constructor
44 46
45 @param parent reference to the parent object (QObject) 47 @param parent reference to the parent object (QObject)
46 """ 48 """
47 super().__init__(parent) 49 super(CooperationClient, self).__init__(parent)
48 50
49 self.__chatWidget = parent 51 self.__chatWidget = parent
50 52
51 self.__servers = [] 53 self.__servers = []
52 for networkInterface in QNetworkInterface.allInterfaces(): 54 for networkInterface in QNetworkInterface.allInterfaces():

eric ide

mercurial