I seem to have a problem with widget layout using sizers. Within boa I can use a gridbagsizer to add all my widgets correctly and the preview of the frame within boa appears correctly. When I run the actual python code the widets are scattered across the frame but when I resize the window they all line up according to the gridbagsizer. How do I force the frame to automatically line the widgets with the gridbagsizer without having to resize the frame?
Are you doing:
In the Boa Frame designer, select the your frame and on the Props tab towards the end is a "Sizer" property, when you set it Boa will generate the above for you.
Yes, I have called self.SetSizer() via the frame designer as you suggested. Is there a way to force the gridbagsizer to update so that everything lines up?
You should not have to do anything to have sizers do their job, at least in most cases.
Can you post as an attachement some runable code showing your problem?
Can you send it to:
This list is mirrored on gmane (gmane.comp.ide.boa-constructor.user), which allows for nice and easy off-line work.
You might also want to look into the wx.Sizer methods:
I'll try to minimize the code (its a bit bloated now) and then post a link to a tar ball.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.