def refresh_ok(self, value): BaseEditor.refresh_ok(self, value) account_type = self.account_type.get_selected() if account_type != Account.TYPE_BANK: value = False self._test_button.set_sensitive(value)
def refresh_ok(self, *args): if self._is_initialized: BaseEditor.refresh_ok(self, self.model.is_valid())
def refresh_ok(self, *args): if not self._is_initialized: return if self.test_button: self.test_button.set_sensitive(self.model.is_valid()) BaseEditor.refresh_ok(self, self.model.is_valid())