I am not able to align widgets using sizers. This is my second try. I have attached the script as well as an image of what I actually need.
I would really appreciate if some one point out some nice tutorials on web for using sizers.
Best regards
sizers.zip (21.3 KB)
···
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
I use wxglade and have had no problem aligning apps similar to your jpg,
using box sizers.
For that app I would create one vertical sizer then add to that 7 horizontal
sizers.
Then to each horizontal add the widgets, centering each vertically.
Make sure all the 'options' (proportional spacing) are zero then do layout
spacing on the left, in pixels, left aligning them perfectly.
You'd need all the left hand labels, like colour and point to be the
same size, large enough for the largest, and right aligned within the widget.
When all your horizontal alignment is good, using layout, do vertical (top)
spacing on the horizontal sizers, again making proportional spacing 0.
I've found it best to draw my layout then use glade to create all the sizers
before adding widgets.
One of my frustrations with wxpython is the need to use pixels, unless you are
really good at proportions. In Tkinter I used anchor and percent a lot.
then when I resized or changed fonts, everything lined up.
It is well worth it to experiment with wxglade and be willing to start over as
you gain knowledge.
Having said all that, someone on the list might do it better with one grid
sizer.???
···
On Sunday 11 May 2008 10:09:41 Prashant Saxena wrote:
I am not able to align widgets using sizers. This is my second try. I have
attached the script as well as an image of what I actually need. I would
really appreciate if some one point out some nice tutorials on web for
using sizers.
Best regards