Re: [Tutor] args to functions in a dictionary?

2010-08-25 Thread Alex Hall
On 8/25/10, Wayne Werner wrote: > On Wed, Aug 25, 2010 at 4:58 PM, Alex Hall wrote: > >> Hi all, >> If I wanted to have a dictionary containing functions, could I pass >> args to those functions? For example: >> menu={ >> "option 1":f1, >> "option 2":f2 >> } >> How would I pass args to f1 or f2

Re: [Tutor] args to functions in a dictionary?

2010-08-25 Thread Wayne Werner
On Wed, Aug 25, 2010 at 4:58 PM, Alex Hall wrote: > Hi all, > If I wanted to have a dictionary containing functions, could I pass > args to those functions? For example: > menu={ > "option 1":f1, > "option 2":f2 > } > How would I pass args to f1 or f2 in this case? TIA. You sure could, becaus

[Tutor] args to functions in a dictionary?

2010-08-25 Thread Alex Hall
Hi all, If I wanted to have a dictionary containing functions, could I pass args to those functions? For example: menu={ "option 1":f1, "option 2":f2 } How would I pass args to f1 or f2 in this case? TIA. -- Have a great day, Alex (msg sent from GMail website) mehg...@gmail.com; http://www.face