"Wayne Watson" <[email protected]> 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 - [email protected]
http://mail.python.org/mailman/listinfo/tutor