<!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">
Not at all. I took Grayson's example as it stood. However, as it might
have been noted above, he was working with Pmw, so the code may be a
false impression of how it works in Tkinter.<br>
<br>
This gave the same results:<br>
root = Tk()<br>
dialog = DialogPrototype(root)<br>
root.mainloop()<br>
<br>
Extra blank window at start up and crashed the same way when pressing
OK. <br>
I'm using this code to prototype a larger dialog with more data entry,
so it doesn't really matter that it crashes when I exit. <br>
<br>
John Fouhy wrote:
<blockquote
 cite="mid:5e58f2e40903171806k26fae381pe3545b63364043f3@mail.gmail.com"
 type="cite">
  <pre wrap="">2009/3/18 Wayne Watson <a class="moz-txt-link-rfc2396E"
 href="mailto:sierra_mtnview@sbcglobal.net">&lt;sierra_mtnview@sbcglobal.net&gt;</a>:
  </pre>
  <blockquote type="cite">
    <pre wrap="">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.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I didn't notice any call to root.mainloop() in your original code.
Are you calling mainloop() anywhere?

  </pre>
</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>