I used Wing IDE to develop and so I tend to basically live in the debugger.
As a consequence I notice some things that you wouldn't unless you were
running under a debugger. Lately, I've noticed (and for a while been
driven slightly nuts by) some exceptions in attempting to use
wxScrolledPanel.
I define a class subclassed off wxPanel -- just to make sure everything
works okay. Then I change that class to use wxScrolledPanel. This
requires adding a call to the SetupScrolling() method.
When SetupScrolling() is executed an exception is raised when it attempts
to call sizer.GetMinSize(). It raises an AtrributeError for '__iter__'.
If you then blow by that exception, another is raised when __getitem__()
calls self.asTuple[index] where the value of index is 2, but the tuple has
only two members. If you then blow by *that* exception, everything seems
to display just fine.
But it seems like something ain't quite right here, eh?
By the way, what I really want to do is to put a wxScrolled Panel inside a
wxStaticBox. Is this possible? I'm "almost" there -- through a lot of
trial and error. Any hints or gotchas?
ยทยทยท
--------------------------------------
Gary H. Merrill
Director and Principal Scientist, New Applications
Data Exploration Sciences
GlaxoSmithKline Inc.
(919) 483-8456