[Tutor] Tkinter wierdness

Rick Pasotto rickp@telocity.com
Tue Dec 10 13:07:02 2002


On Tue, Dec 10, 2002 at 11:28:20AM -0600, Isaac Hall wrote:
> I was wondering if someone could explain the source of some wierdness
> I am seeing in Tkinter. I have a program with a main window, and later
> create other Toplevel Windows.  I place a button in the Toplevel
> window, but then the wierdness ensues.  the command for the button is
> run when the button is created, and can never be run again!  clicking
> the button afterward does nothing.  can someone explain why this is
> happening, because I am stumped.  

Without seeing your actual code this is only a guess but does your
button definition include 'command=func()'? If so, drop the parentheses
and your problem will be solved.

-- 
"The financial policy of the welfare state requires that there be no
way for the owners of wealth to protect themselves.  This is the
shabby secret of the welfare statists' tirades against gold.   Deficit
spending is simply a scheme for the 'hidden' confiscation of wealth.
Gold stands in the way of this insidious process.   It stands as a
protector of property rights."
		-- Alan Greenspan
    Rick Pasotto    rickp@telocity.com    http://www.niof.net