In [ ]:
from ipywidgets import *
In [ ]:
t1 = Text("text input", layout=Layout(
width="80px", border="1px dashed red"
))
b1 = Button(description="button")
HBox((t1,b1))
In [ ]:
b1.layout.border = "2px solid yellow"
t1.layout.border_left = "5px dotted blue"
b1.layout.border_right = "2px dotted blue"
In [ ]:
t2 = Text("text input")
b2 = ToggleButton(description="toggle button", layout=Layout(
width="200px", border_left="2px solid yellow"
))
HBox((t2,b2))
In [ ]:
t2.layout.border_left = "5px dotted blue"
b2.layout.border_right = "2px dotted blue"
t2.layout.border = "1px dashed red"
In [ ]:
t1.layout.border_top = "5px solid green"
b1.layout.border = "1px solid purple"
t2.layout.border_right = "5px double skyblue"
In [ ]:
t2.layout.border_right = None