Thanks! I noticed that Grid has functionality I was looking for. I am placing buttons/textboxes/other widgets in the Grid cells. Not sure if it is good solution, but at least - works with building GUI
W dniu środa, 16 października 2013 16:56:31 UTC+2 użytkownik C Anthony Risinger napisał: > > > > > On Wed, Oct 16, 2013 at 2:52 AM, borsooq <[email protected] > <javascript:>>wrote: > >> Hello, I wanted to switch a little bit from desktop gui to PYJS. When ran >> some examples i realized, that I would like to have CaptionPanel and two >> (or more) columns in it. Tried to di it, but with no success. Can anyone >> tell my how to di it? When I am adding buttons by >> captionpanelobject.add(button) twice I have these two buttons, but when I >> am adding textbox and then button (or in other order), I have only one. I >> used to use glade and as far, as I rememer, I needed to make some >> containers (horizontal/vertical), set number of fields (rows/columns) and >> then just put widgets into separate cells. How can I do it in PYJS? I am >> struggling for several hours with that and can't find solution. >> >> Please help. >> > > i can't give you a working code example offhand, but in general, many > widgets only accept a single child. > > you must compose 1-3+ widgets to achieve the effect you want, usually by > making use of the VerticalPanel/HorizontalPanel/DockPanel workhorses... > something like: > > CaptionPanel => HorizontalPanel[ col1, col2 ] > > ...ie. CaptionPanel has ONE child, and *that* child implements "columns". > > i know it's a bit terse, so if you need more info or don't yet understand, > just let us know. > > -- > > C Anthony > -- --- You received this message because you are subscribed to the Google Groups "Pyjs.org Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
