I'm joking with Jupiter widgets and I'm having problems with alignment, for example, I have next Widgets are: wdg # two sliders s1 = wdg.IntSlider (min = 0, max = 100, value = 25, description = 'xo') from ipython.html import widget from
s2 = Wdg # three float text c1 = wdg.BoundedFloatText (min = 0, max = 100, value = 5, description = 'c1') c2 = x, max = 100, value = 25, description = 'yo' wdg .BoundedFloatText (minimum = 0, max = 100, value = 5, description = 'C2') C3 = wdg.BoundedFloatText (min = 0, max = 100, value = 5, description = 'C3') #Two checkboxes 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])
Con5
, c1
, c2 There is no space between the output of
and c3
. E float box so that their description overlaps, how can I do them in the center or at least How low I could raise anywhere between the two?
I confirmed 'margin' affects the difference in vertical and horizontal form
< Pre> c1.margin = 20 c2.margin = 20 c3.margin = 20
No comments:
Post a Comment