Tkinter problem

Martin Franklin mfranklin1 at gatwick.westerngeco.slb.com
Mon Nov 4 11:29:09 EST 2002


On Mon, 2002-11-04 at 16:15, Benson Ngai wrote:
> okButton=Button(msgWin,text="OK",command=msgWin.quit,justify=CENTER)
> #^^^^^^ Problem on this line^^^^^^^^^^^^^^^^^^^^^######
> 


Benson,

As Matt pointed out there is the destroy method for all toplevel windows
in Tk or in your case you could use the withdraw method:-

okButton=Button(msgWin,text="OK",command=msgWin.withdraw,justify=CENTER)


HTH
Martin








More information about the Python-list mailing list