Created
April 2, 2020 14:53
-
-
Save kervel/36f95096c335eb4857ed44565cbea029 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
box_layout = widgets.Layout( | |
border='solid 1px red', | |
margin='0px 10px 10px 0px', | |
padding='5px 5px 5px 5px') | |
vbox1, vbox2 = make_boxes() | |
vbox1.layout = box_layout | |
vbox2.layout = box_layout | |
# change vbox1 only? | |
vbox1.layout.width = '400px' | |
vbox1.layout.border = 'solid 2px green' | |
widgets.HBox([vbox1, vbox2]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment