"Wayne Watson" <sierra_mtnv...@sbcglobal.net> wrote

 got shelled by:

   dialog = DialogPrototype(root)
TclError: window ".60529560" was deleted before its visibility changed

Thats the result of withdraw I think

Try reversing the calls:

root = Tk()
dialog = DialogPrototype(root)
root.withdraw()

That way the withdraw happens after the dialog is created.
root should not then be garbage collected since it is still
referred to by the Dialog parent attribute.

I think... :-)

Alan G.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to