now the button will always take up exactly half the screen
err actually this is rubbish. i thought it should of done that...
i tried to make you a test to see - lucky i did!
Well I have a couple of questions, Im downloading 0.11 now:
- How to add in game-skel5 the keyboard eventes + pudding events? It
seems to happen as with the old Choicelist, or you make the choicelist
events or the "normal ones" but I cant get to perform both events, so I
have an app with buttons working or one I can move the 3D map...
- If I add two buttons this code didnt work:
gui_container = pudding.core.RootWidget(width = 1024,height = 768)
button_bar = pudding.container.HorizontalContainer( gui_container, 10 ,
700 , 64, 64)
button_bar.anchors = pudding.ANCHOR_ALL
d = button_bar.add_child(pudding.control.Button(label = 'Boton'), 1 )
d.background_color = (0.3, 0.3, 0.3, 1.)
f = button_bar.add_child(pudding.control.Button(label = 'Boton2'), 1 )
f.background_color = (0.3, 0.3, 0.3, 1.)
f.right = 130
Well, it works, but I have one button and the other one in top of it a
bit to the right, is not supposed to work the .right .left and so?
I think I saw that in one of the examples.
Maybe if I want two buttons I have to do two containers? Not sure about
this.