Skip to content

Basic widget button to display text on press does not work #1994

Closed
@IanMatthewHuff

Description

@IanMatthewHuff

btn = widgets.Button(description='Medium')
display(btn)
def btn_eventhandler(obj):
print('Hello from the {} button!'.format(obj.description))
btn.on_click(btn_eventhandler)

image

In VSCode pressing the button does nothing.

image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions