ANN - LearnSizer1 - a not too small script to learn sizers

This is useful. If I may make a suggestion, at line 882, if you replace this:

        self.panel = MyPanel_0(self)

with this:
              panel = 0
        if len(sys.argv) > 1:
            panel = int(sys.argv[1])
        self.panel = eval('MyPanel_%d(self)' % panel)

you can run each of the samples just by supplying the panel number on the command line, instead of editing it each time:

    LearnSizer1.py 3
    LearnSizer2.py 8

···

Jean-Michel Fauth <wxPython-users@lists.wxwidgets.org> wrote:

# LearnSizer*.py is 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. The panels are numbered # MyPanel_0 to MyPanel_n. The panel 0 is the simpliest case. The
# order of the panels follows an increasing complexity in the
# layout. It is warmly recommended to start with MyPanel_0.

http://www.chez.com/spinecho/

--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.