basicViewerPython.py
def on_disconnected(self, message):
        """The Viewer connection has just ended"""
        # Reset the cursor to the default
        self.unsetCursor()

        # Display the disconnection reason, if any
        if message:
            box = QtGui.QMessageBox(QtGui.QMessageBox.NoIcon, "Error", message,
                                    buttons=QtGui.QMessageBox.Ok, parent=self)
            box.exec_()

        # Close the window.  Setting conn_disconnected prevents us subsequently
        # calling disconnect() on the connection.
        self.conn_disconnected = True
        self.close()
The Viewer connection has just ended
The Viewer connection has just ended
The Viewer connection has just ended
def on_disconnected(self, message):
        self.unsetCursor()
        if message:
            box = QtGui.QMessageBox(QtGui.QMessageBox.NoIcon, "Error", message,
                                    buttons=QtGui.QMessageBox.Ok, parent=self)
            box.exec_()
        self.conn_disconnected = True
        self.close()
def on_disconnected ( self , message ) : self . unsetCursor ( ) if message : box = QtGui . QMessageBox ( QtGui . QMessageBox . NoIcon , "Error" , message , buttons = QtGui . QMessageBox . Ok , parent = self ) box . exec_ ( ) self . conn_disconnected = True self . close ( )
The Viewer connection has just ended
The Viewer connection has just ended
"""The Viewer connection has just ended""" # Reset the cursor to the default # Display the disconnection reason, if any # Close the window.  Setting conn_disconnected prevents us subsequently # calling disconnect() on the connection.
self
message