<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Unfortunately, that takes me back to the original situation. That is,
the blank window appears along with the dialog window. It also ends
badly with what looks like the same error messages(below). Maybe focus
needs to be established. I'm really using this code to design a dialog
for the larger application program, so I don't need to get too fussy
about how it ends. I just want to see that I've got the elementary
widgets place properly. <br>
<br>
<br>
==============msgs==============<br>
setting<br>
here .85342728.85433640.85432520 &lt;type 'instance'&gt;<br>
Traceback (most recent call last):<br>
&nbsp; File
"C:/Sandia_Meteors/Sentinel_Development/Development_Sentuser-Utilities/sentuser/NewSentDlg.py",
line 34, in &lt;module&gt;<br>
&nbsp;&nbsp;&nbsp; dialog = DialogPrototype(root)<br>
&nbsp; File "C:\Python25\lib\lib-tk\tkSimpleDialog.py", line 69, in __init__<br>
&nbsp;&nbsp;&nbsp; self.wait_visibility() # window needs to be visible for the grab<br>
&nbsp; File "C:\Python25\lib\lib-tk\Tkinter.py", line 415, in wait_visibility<br>
&nbsp;&nbsp;&nbsp; self.tk.call('tkwait', 'visibility', window._w)<br>
TclError: window ".85342728" was deleted before its visibility changed<br>
<br>
Alan Gauld wrote:
<blockquote cite="mid:gpp4ud$k4b$1@ger.gmane.org" type="cite"><br>
"Wayne Watson" <a class="moz-txt-link-rfc2396E" href="mailto:sierra_mtnview@sbcglobal.net">&lt;sierra_mtnview@sbcglobal.net&gt;</a> wrote
  <br>
  <br>
  <blockquote type="cite">&nbsp;got shelled by:
    <br>
  </blockquote>
  <br>
  <blockquote type="cite">&nbsp;&nbsp; dialog = DialogPrototype(root)
    <br>
TclError: window ".60529560" was deleted before its visibility changed
    <br>
  </blockquote>
  <br>
Thats the result of withdraw I think
  <br>
  <br>
Try reversing the calls:
  <br>
  <br>
root = Tk()
  <br>
dialog = DialogPrototype(root)
  <br>
root.withdraw()
  <br>
  <br>
That way the withdraw happens after the dialog is created.
  <br>
root should not then be garbage collected since it is still
  <br>
referred to by the Dialog parent attribute.
  <br>
  <br>
I think... :-)
  <br>
  <br>
Alan G. <br>
  <br>
_______________________________________________
  <br>
Tutor maillist&nbsp; -&nbsp; <a class="moz-txt-link-abbreviated" href="mailto:Tutor@python.org">Tutor@python.org</a>
  <br>
<a class="moz-txt-link-freetext" href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor</a>
  <br>
  <br>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta content="text/html;" http-equiv="Content-Type">
<title>Signature.html</title>
<pre class="moz-signature" cols="76">           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)<span
 style="font-weight: bold;"></span><b><b
 style="color: rgb(204, 51, 204);" class="b"><span
 style="color: rgb(255, 153, 255);"></span><span
 style="font-family: monospace;"></span></b></b>
<span style="color: rgb(102, 0, 204);"></span><span
 style="color: rgb(102, 0, 204);"></span>

<span style="color: rgb(102, 0, 204);">                </span><font
 class="sqq"><span style="color: rgb(102, 0, 204);">&#8220;</span><span
 class="sqq" style="color: rgb(102, 0, 204);">Life is one damn thing after another."
                     -- Mark Twain </span></font>
</pre>
</div>
</body>
</html>