"Philippe C. Martin" <[EMAIL PROTECTED]> writes:

> l_dec_list = ['ATR','IN']
>
> for i in l_dec_list:
>   l_dec.add_command(label = i, command= lambda: self.__Dec(i))

Give the lambda an argument with a default:

l_dec.add_command(label=i, command=lambda x=i: self.__Dec(x))

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to