def disconnected(self, reason): """ Client has been disconnected from the server. """ Client.disconnected(self, reason) self.mainwindow.statusBar().showMessage( 'Disconnected: %s' % reason.getErrorMessage())
def login_failed(self, failure): """ Client login has failed for some reason. """ Client.login_failed(self, failure) self.mainwindow.statusBar().showMessage( 'Failed: %s' % failure.getErrorMessage())
def connected(self, perspective): """ Client has connected to the server. """ Client.connected(self, perspective) self.mainwindow.statusBar().showMessage('Logged in.')
def __init__(self): Client.__init__(self) self.mainwindow = MainWindow() self.mainwindow.client = self self.mainwindow.setupUi(self.mainwindow)