Re: Tk.quit() now working!

2006-01-31 Thread Mikael Olofsson
Fredrik Lundh wrote:
how do you run your Tkinter program ?

al pacino wrote:
 like? i was testing it in windows (interactive interpreter)

What Fredrik probably means is: Did you by any chance start it from 
IDLE? In that case it will not work. It doesn't for me. The reason - 
I've been told - is that IDLE itself is a tkinter application.

If you instead start it by simply double-clicking on its icon, as you 
would start anything else in Windows, it should work as expected. It 
does for me, on Win XP Pro.

HTH
/MiO
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Tk.quit() now working!

2006-01-30 Thread al pacino
how do you run your Tkinter program ?

like? i was testing it in windows (interactive interpreter)

-- 
http://mail.python.org/mailman/listinfo/python-list


Tk.quit() now working!

2006-01-29 Thread al pacino
i have a weired problem with button widget in Tkinter
the callback function(Tk.quit()) for button widget is not working! when
i 'press' the button
the GUI hangs.
 code for displaying a 'button objec':
###
import Tkinter
top=Tkinter.Tk()
button=Tkinter.Button(top,text='press me',command=top.quit)#callback to
end the appllication
button.pack()
Tkinter.mainloop()
###
any comments?

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Tk.quit() now working!

2006-01-29 Thread Fredrik Lundh
al pacino wrote:

 i have a weired problem with button widget in Tkinter
 the callback function(Tk.quit()) for button widget is not working! when
 i 'press' the button
 the GUI hangs.
  code for displaying a 'button objec':
 ###
 import Tkinter
 top=Tkinter.Tk()
 button=Tkinter.Button(top,text='press me',command=top.quit)#callback to
 end the appllication
 button.pack()
 Tkinter.mainloop()
 ###
 any comments?

how do you run your Tkinter program ?

/F



-- 
http://mail.python.org/mailman/listinfo/python-list