[wxPython-users] Many Similar Dialogs For Date Entry
Christopher Barker
Chris.Barker at noaa.gov
Fri Feb 2 11:58:18 PST 2007
Rich Shepard wrote:
> On Fri, 2 Feb 2007, Don Dwiggins wrote:
>
>>> 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.
>
>> Or use a dictionary, keyed on the argument names.
>
> Don,
>
> Please show me an example of how the dictionary would be implemented. It
> looks like something I ought to learn for future reference.
It's been said that the proper way to spell "switch ... case" in Pyhton
is NOT if..elif...elif, but rather a dictionary. Here's a simple example:
http://simonwillison.net/2004/May/7/switch/
A little more googling might find you more.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the wxpython-users
mailing list