Exiting Tkinter when using IDLE

Batista, Facundo FBatista at uniFON.com.ar
Fri Mar 12 12:36:26 EST 2004


Jason Harper wrote:

#- You have two issues here:
#- 
#- 1. Don't use the quit method, instead just close your 
#- window.  Your QUIT
#- button could perhaps use:
#- 	command=self.destroy

Used command=master.destroy. This way I'm telling "destroy" to the Tk
instance.


#- 2. Don't call mainloop() if IDLE already has one running.  Try this:
#- 
#- import sys
#- if "idlelib" not in sys.modules:
#- 	root.mainloop()



Thank you very much!

As Gerrit Muller, I think this should be standard information. It's
important because Tkinter is the built in GUI and IDLE is the built in IDE.

Don't know if Fredrik Lundh is reading this, but I used "An Introduction to
Tkinter" from him and I think these issues should be there.

.	Facundo





. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
ADVERTENCIA  

La información contenida en este mensaje y cualquier archivo anexo al mismo,
son para uso exclusivo del destinatario y pueden contener información
confidencial o propietaria, cuya divulgación es sancionada por la ley. 

Si Ud. No es uno de los destinatarios consignados o la persona responsable
de hacer llegar este mensaje a los destinatarios consignados, no está
autorizado a divulgar, copiar, distribuir o retener información (o parte de
ella) contenida en este mensaje. Por favor notifíquenos respondiendo al
remitente, borre el mensaje original y borre las copias (impresas o grabadas
en cualquier medio magnético) que pueda haber realizado del mismo. 

Todas las opiniones contenidas en este mail son propias del autor del
mensaje y no necesariamente coinciden con las de Telefónica Comunicaciones
Personales S.A. o alguna empresa asociada. 

Los mensajes electrónicos pueden ser alterados, motivo por el cual
Telefónica Comunicaciones Personales S.A. no aceptará ninguna obligación
cualquiera sea el resultante de este mensaje. 

Muchas Gracias.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20040312/ea3acb6c/attachment.html>


More information about the Python-list mailing list