- Updated version
- For beginners, a step by step way to learn sizers
- For more experimented users, panels showing the usage of StaticTexts in
Sizers, comparaison between FlexGridSizers and GridBagSizers (... and some
issues in GridBagSizers).
- From LearnSizer5.py:
# On sizers or "as I understand them".
# LearnSizers*.py is (was!) a small application aimed to learn the sizers and
# their usage. This application is a collection of panels. Each panel
# contains a few widgets laid out with sizers.
# This application is not a demo. It is intended for coders/users who
# wish to use their ten fingers.
# The author wrote most of the panels, he also borrow shamelessly ideas
# and code from the wxPython mail list.
# Due to the increasing number of test panels, this application has been
# splitted in modules.
···
#
# LearnSizers5 : main module
# ColourWindow: items for sizers
# WithBoxSizers : use of BoxSizers, panel_100, panel_101, ...
# WithStaticBoxSizers : use of StaticBoxSizers, panel_200
# WithFlexGridSizers : use of FlexGridSizers, panel_300
# WithGridBagSizers : use of GridBagSizers, panel_400
# MiscSizers : ditto, misc. items and sizers, panel_500
# StaticTextsInSizers : "the staticText case", panel_600
# OnWorkSizers : test ans work in progress, panel_xxx
# Do not forget
# - the wxPython demo
# - the wxPython doc, including the newdoc
# - the wiki page http://wiki.wxpython.org/index.cgi/UsingSizers
# - dir(<instance of a sizer>) for a list of methods
# - print <sizer>.<method>.__doc__
- Where? http://spinecho.ifrance.com/
Jean-Michel Fauth, Switzerland