def check_network_connection(self): """Check if the NetworkDetectionPage is needed to be shown.""" d = yield networkstate.is_machine_connected() if d: self._connection_detected()
def try_again(self, button_id=QtGui.QWizard.CustomButton1): """Test the connection again.""" if button_id == QtGui.QWizard.CustomButton1: d = yield networkstate.is_machine_connected() if d: self.connectionDetected.emit()