Re: Calling function from another module

2010-12-16 Thread Peter Otten
craf wrote: Hi. The query code is as follows: -- import Tkinter import tkMessageBox class App: def __init__(self, master): master.protocol(WM_DELETE_WINDOW,quit) def quit(): if

[Fwd: Re: Calling function from another module]

2010-12-16 Thread craf
- Mensaje reenviado De: Peter Otten __pete...@web.de Para: python-list@python.org Asunto: Re: Calling function from another module Fecha: Thu, 16 Dec 2010 13:16:30 +0100 Grupos de noticias: comp.lang.python craf wrote: Hi. The query code is as follows

Calling function from another module

2010-12-15 Thread craf
Hi. The query code is as follows: -- import Tkinter import tkMessageBox class App: def __init__(self, master): master.protocol(WM_DELETE_WINDOW,quit) def quit(): if tkMessageBox.askyesno('','Exit'): master.quit()

Re: Calling function from another module

2010-12-15 Thread rantingrick
On Dec 15, 6:46 pm, craf p...@vtr.net wrote: Hi. The query code is as follows: -- import Tkinter import tkMessageBox class App:     def __init__(self, master):         master.protocol(WM_DELETE_WINDOW,quit) def quit():     if