Re: [Tkinter-discuss] lambada difficult to understand

2011-08-21 Thread Firat Ozgul
With lambda your codes will look like this: [code] from Tkinter import * fields = 'Name', 'Job', 'Pay' def fetch(entries): for entry in entries: print 'Input => "%s"' % entry.get() # get text def makeform(root, fields): entries = [] for field in fields: row = Frame(r

[Tkinter-discuss] lambada difficult to understand

2011-08-21 Thread 守株待兔
here is a example 9-18.pp3e\gui\tour\entry2.py from the book "programming python(third edition)", i revise it as following,change the "fetch(entries)" to "fetch(event,entries)" ,and add ,event.widget to understand lambda is my goal, there is a question i can't solve,when i click button ,wro