Button test file

This is a button test file. we have a button and a textarea and the button does some stuff.


In [1]:
from ipywidgets import widgets
from IPython.display import display
from IPython.display import Markdown

txtArea = widgets.Text()
display(txtArea)

myb= widgets.Button(description="234")
def add_text(b):
    print("hello")
    b.description=b.description+"1"
    txtArea.value = txtArea.value + txtArea.value


myb.on_click(add_text)

display(myb)