Re: [Tutor] Buttons automatically executing

2005-06-15 Thread Danny Yoo
On Wed, 15 Jun 2005, Phillip Hart wrote: > Thanks for taking the time to read this. > > Excuse me if this falls under the boundaries of a "newbie" question, as > I am a self-taught programmer. Hi Phillip, It's a "newbie" question. But that's perfectly ok. *grin* > While using Tkinter to cr

Re: [Tutor] Buttons automatically executing

2005-06-15 Thread Michael Lange
On Wed, 15 Jun 2005 14:31:55 -0500 Phillip Hart <[EMAIL PROTECTED]> wrote: Hi Phillip, > #!usr/bin/python > > from Tkinter import * > > def location(x,y): > print "I am in row ",x," and column ",y > > > root=Tk() > root.geometry('300x300') > can=Canvas(root,width=250, height=250) > > bimage

[Tutor] Buttons automatically executing

2005-06-15 Thread Phillip Hart
Thanks for taking the time to read this. Excuse me if this falls under the boundaries of a "newbie" question, as I am a self-taught programmer. While using Tkinter to create buttons, something unexpected happens when the button commands call functions.  Namely, when I run the following, it immedi