TKinter, buttonwidget response problem(1) and all btns the same size(2)!

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sat Apr 5 07:28:42 CEST 2008


En Sat, 05 Apr 2008 02:02:45 -0300, <skanemupp at yahoo.se> escribió:

> one thing i dont rally get, i ahve to add my_button.bind() somewhere?
> i changed the stuff u said though and i get this error(the program
> executes though and i can press the buttons):

Either use command, or bind. command requires a function with no  
parameters (or a bound method with self alone). bind uses a function with  
a single parameter, the event (or a bound method with self and event  
parameters).

See the Tkinter book:
http://www.effbot.org/tkinterbook/tkinter-events-and-bindings.htm
http://www.effbot.org/tkinterbook/button.htm

-- 
Gabriel Genellina




More information about the Python-list mailing list