Re: [Tkinter-discuss] Recognizing buttons

2010-08-15 Thread Cameron Laird
On Sat, Aug 14, 2010 at 08:06:41PM -0600, Guido Carballo-Guerrero wrote: . . . > Is it possible to have a set of buttons, all calling to the same function, > recognize which of the buttons was the one that call the function?

Re: [Tkinter-discuss] Recognizing buttons

2010-08-15 Thread Michael O'Donnell
Hi Guido, > Is it possible to have a set of buttons, all calling to the same function, > recognize which of the buttons was the one that call the function? One solution to your problem, using lambda to define the function call. from Tkinter import * def killBut(but): but.pack_forget() tk

[Tkinter-discuss] Recognizing buttons

2010-08-14 Thread Guido Carballo-Guerrero
Hello; Is it possible to have a set of buttons, all calling to the same function, recognize which of the buttons was the one that call the function? 'Cause what I want to do, is create a set of buttons, where I will not know how many buttons will be created, that will depend on the input of th