[Tkinter-discuss] Passing arguments to command in button.bind.
Cameron at phaseit.net
Tue Jul 28 14:56:02 CEST 2009
On Tue, Jul 28, 2009 at 02:04:52PM +0200, jkv wrote:
> Im playing around with Tkinter and cant figure out how to pass arguments
> to a def which are called when pressing a button.
> When i bind to self.newdestination('whatever') the def is called (with
> arguments) as soon as the button is drawn, whereas when i bind to
> self.newdestination the function is called when i press the button - but
> obviously without any arguments
Do <URL: http://effbot.org/zone/tkinter-callbacks.htm >,
<URL: http://bytes.com/groups/python/169899-arguments-button-command-via-tkinter#post660794 >
<URL: http://www.daniweb.com/forums/post772901-2.html >, and
<URL: http://bytes.com/groups/python/34118-tkinter-button-command#post125902 >
leave any questions?
More information about the Tkinter-discuss