# Width of input_text boxes

 1 Does layout syntax allow to modify following example @interact(layout=[['a','b'],['c','d']]) def _(a=1,b=2,c=3,d=4): print a+b+c+d  in order to control the width of the four input text boxes ? (I know that @ interact def _(a=input_text(a=1, width=15), b=...)  makes this possible, the question is : 'can we do that inside layout' ?) asked Jun 21 '12 This post is a wiki. Anyone with karma >150 is welcome to improve it. calc314 2200 ● 7 ● 25 ● 62

 1 All that goes in the layout parameter is the name; everything else goes in the function definition: @interact(layout=[['a','b'],['c','d']]) def _(a=input_box('1', width=3), b=2,c=3,d=4): print a+b+c+d  See this example answered Jun 22 '12 This post is a wiki. Anyone with karma >150 is welcome to improve it. Jason Grout 3305 ● 7 ● 28 ● 74 Than you Jason, it's clear.reveil (Jun 22 '12)

[hide preview]