Jupyter VBox小部件具有“垂直中心”对齐

时间:2018-09-19 14:21:28

标签: python jupyter-notebook

我创建一个VBox,其中包含一个带有

的按钮
button = Button(description='Press me')
VBox([button])

我希望按钮显示为垂直居中。 怎么样?

例如,这将创建3个按钮(左列2个,右列1个)。如何使按钮3垂直居中?

HBox([VBox([Button(description='button 1'), Button(description='button 2')]), VBox([Button(description='button 3')])])

enter image description here

0 个答案:

没有答案