[wxPython-users] Many Similar Dialogs For Date Entry
Rich Shepard
rshepard at appl-ecosys.com
Fri Feb 2 12:09:19 PST 2007
On Fri, 2 Feb 2007, Chris Mellon wrote:
> Python lacks a case statement,
Tell me about it! I really miss the switch statement which my C
applications always use extensively.
> Python with dictionary:
>
> def processID(id):
> mapper = {
> SWITCH_ONE:process_one,
> SWITCH_TWO:process_two
> }
> mapper[id]()
Gotcha', thanks.
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