Utilities/SingleApplication.py

changeset 500
c3abc7895a01
parent 465
c20e25deb33a
child 791
9ec2ac20e54e
equal deleted inserted replaced
499:622ab17a68d5 500:c3abc7895a01
5 5
6 """ 6 """
7 Module implementing the single application server and client. 7 Module implementing the single application server and client.
8 """ 8 """
9 9
10 from PyQt4.QtCore import SIGNAL
11 from PyQt4.QtNetwork import QLocalServer, QLocalSocket 10 from PyQt4.QtNetwork import QLocalServer, QLocalSocket
12 11
13 class SingleApplicationServer(QLocalServer): 12 class SingleApplicationServer(QLocalServer):
14 """ 13 """
15 Class implementing the single application server base class. 14 Class implementing the single application server base class.
77 """ 76 """
78 Public method used to shut down the server. 77 Public method used to shut down the server.
79 """ 78 """
80 if self.qsock is not None: 79 if self.qsock is not None:
81 self.qsock.readyRead[()].disconnect(self.__parseLine) 80 self.qsock.readyRead[()].disconnect(self.__parseLine)
82 self.disconnect(self.qsock, SIGNAL('disconnected()'), self.__disconnected) 81 self.qsock.disconnected.disconnect(self.__disconnected)
83 82
84 self.qsock = None 83 self.qsock = None
85 84
86 self.close() 85 self.close()
87 86

eric ide

mercurial