[Tkinter-discuss] creating widgets generically, with a loop?

Mike Steiner mikejaysteiner at yahoo.com
Wed Jun 21 17:29:29 CEST 2006

Does this work - does the "command=" parameter allow the function
value to contain parameters too? If so, it would solve the problem

--- Martin Franklin <mfranklin1 at gatwick.westerngeco.slb.com> wrote:
> [ stuff omitted ]
> for text, external, filename in my_buttons:
>    b = Button(self, text=text, command=self.launchit(external,
> filename))
>    b.grid()

Michael Steiner
MikeJaySteiner at yahoo.com

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

More information about the Tkinter-discuss mailing list