wxPython and wxFlexGridSizer problem

Jeff Shannon jeff at ccvcorp.com
Tue Mar 26 17:57:44 EST 2002


Uwe Schmitt wrote:

> Cliff Wells <logiplexsoftware at earthlink.net> wrote:
>
> | That may be the case, but Jeff brought up some good points.  It looks odd
> | to create a window in this fashion (it looks procedural rather than OO).  A
> | more typical approach would be something like:
>
> I know what you mean, but I'd like to write a general procedure
> which generates an input/output mask based on a relational database
> describption. And this mask may appear in a wxFrame *or* a wxDialog.
> So I use the "parent" of the mask as a parameter of my function...

Then create your controls on a wxPanel, and then add that panel to either your
frame or your dialog.  The wxPanel will have the added benefit that, even in a
frame, it will handle tabbing between controls, etc, correctly.

Jeff Shannon
Technician/Programmer
Credit International





More information about the Python-list mailing list