[wxPython-users] Many Similar Dialogs For Date Entry

Rich Shepard rshepard at appl-ecosys.com
Thu Feb 1 16:27:32 PST 2007


On Thu, 1 Feb 2007, Rich Shepard wrote:

>  Creating 18 classes, each slightly different from the others is inelegant
> and prone to be a maintenance nightmare. I suppose that one base class
> with the others inheriting from it might work, but I've not written
> anything like this in my short exposure to wxPython.

   Perhaps the one dialog class called with named arguments that are used to
present and return only the relevant fields. The dialog class then has a
series of if ... elif control statements.

Rich

-- 
Richard B. Shepard, Ph.D.               |    The Environmental Permitting
Applied Ecosystem Services, Inc.        |          Accelerator(TM)
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863




More information about the wxpython-users mailing list