Skip to content

proper way to update widget style (such as font-size) ? #577

@patrickhoebeke

Description

@patrickhoebeke

Hello,
I've noticed that since version 5.0 it is not possible to set style parameters such as 'font-size' with the following syntax

from ipywidgets import widgets
w=widgets.Text("example",font_size=75)
display(w)

neither this way:

from ipywidgets import widgets
w=widgets.Text("example")
w.font_size=75
display(w)

What is the proper way?
I've found anything in the doc :-(

Metadata

Metadata

Assignees

No one assigned

    Labels

    resolved-lockedClosed issues are locked after 30 days inactivity. Please open a new issue for related discussion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions