<[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> button[num] = Tkinter.Button(frame,text = returnstring,
> command=callback(returnstring))#
>
> I understand this part of it
>
> def callback(text):
> def handler(event):
> print text
> It stopped calling it automaticaly but will not do anything when I
> click on the button. Does something have to change on this line as
> well.
Sorry, I overlooked your example. For a button, command should be a function
with no arguments (and I forget to return the handler, as someone already
pointed out):
def callback(text):
def handler():
print text
return handler
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list