alignment - IPython/Jupyter Align Widgets -
i've been woking jupyter widgets , i'm having problems alignment, example, have next widgets:
from ipython.html import widgets wdg #two sliders s1 = wdg.intslider(min=0,max=100,value=25,description='xo') s2 = wdg.intslider(min=0,max=100,value=25,description='yo') #three float text c1 = wdg.boundedfloattext(min=0,max=100,value=5,description='c1 ') c2 = wdg.boundedfloattext(min=0,max=100,value=5,description='c2 ') c3 = wdg.boundedfloattext(min=0,max=100,value=5,description='c3 ') #two checkbox ch1 = wdg.checkbox(description='check me 1') ch2 = wdg.checkbox(description='check me 2') #containers con1 = wdg.hbox(children=[s1,s2]) con2 = wdg.hbox(children=[c1,c2,c3]) con3 = wdg.hbox(children=[ch1,ch2]) con5 = wdg.box(children=[con1,con2,con3])
in output of con5
, c1
,c2
, c3
no space between float boxes descriptions overlaped, how can center them, or @ least increase space between them?
i confirmed 'margin' affects spacing vertically , horizontally.
c1.margin=20 c2.margin=20 c3.margin=20
Comments
Post a Comment