[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: > > &g

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 tkMessageBox.

Re: Calling function from another module

2010-12-15 Thread rantingrick
On Dec 15, 6:46 pm, 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 tkM

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()