def __init__(self, ncui, *args, **kwargs): super(DebugPanel, self).__init__(*args, **kwargs) self.mock_result.bind(active=ncui.set_mock_result) self.mock_settings_result.bind(active=ncui.set_mock_settings_result) self.mock_result.active = netcheck._get_ref().MOCK_RESULT self.mock_settings_result.active = \ netcheck._get_ref().MOCK_SETTINGS_RESULT
def set_mock_result(self, instance, available): Logger.info(str(available)) netcheck._get_ref()._set_debug(MOCK_RESULT=available)
def set_mock_settings_result(self, instance, available): netcheck._get_ref()._set_debug(MOCK_SETTINGS_RESULT=available)