See the following links for Boxed Warning: Medication Guide & Safety Information
The problem is with wigglystuff's anywidgets. The re-activeness somehow not works.
Defining the EdgeDraw widget. i wanna add new nodes through text input and input button pressing
friend = mo.ui.text(placeholder="friend name") button = mo.ui.run_button(label="Add Friend", kind="success") delete = mo.ui.run_button(label="Remove Friend", kind="danger") graph = mo.ui.anywidget(wg.EdgeDraw(["appu", "dett", "eker", "hulo"]))
The appending works but the displaying graph widget not updated
if button.value and friend.value not in graph.names:
graph.names.append(friend.value)
print(graph.names)
if delete.value and friend.value in graph.names:
graph.names.remove(friend.value)
print(graph.names)