From ab388d4b075e7930f6be4feb09971ce57212586f Mon Sep 17 00:00:00 2001 From: eri24816 Date: Sun, 31 Mar 2024 14:30:26 +0800 Subject: [PATCH] fix bug --- content/docs/node/lifecycle_of_a_node.md | 2 +- content/docs/node/node.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/docs/node/lifecycle_of_a_node.md b/content/docs/node/lifecycle_of_a_node.md index e00f907..fd4086e 100644 --- a/content/docs/node/lifecycle_of_a_node.md +++ b/content/docs/node/lifecycle_of_a_node.md @@ -13,7 +13,7 @@ This document describes how nodes are created, deleted, restored, updated, saved In case you're overwhelmed by reading this page, just read the [conclusion](#conclusion). -![Image](https://i.imgur.com/deOzDTd.png) +![Image](https://i.imgur.com/I0fMMjP.png) https://excalidraw.com/#json=UUIVcXygC4-7GRovE2Uxw,8WvXvCo43xdHG8PScqLmmA diff --git a/content/docs/node/node.md b/content/docs/node/node.md index 5ab4754..f4e9148 100644 --- a/content/docs/node/node.md +++ b/content/docs/node/node.md @@ -89,7 +89,7 @@ To expose an attribute to the inspector, call `expose_attribute()` in the `build ```python class CounterNode(Node): def build_node(self): - self.count_topic = self.add_attribute('count',StringTopic, value=0) + self.count_topic = self.add_attribute('count',StringTopic, init_value=0) self.expose_attribute(self.count_topic, editor_type='text', label='Count') ```