Title: Signature.html
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.


==============msgs==============
setting
here .85342728.85433640.85432520 <type 'instance'>
Traceback (most recent call last):
  File "C:/Sandia_Meteors/Sentinel_Development/Development_Sentuser-Utilities/sentuser/NewSentDlg.py", line 34, in <module>
    dialog = DialogPrototype(root)
  File "C:\Python25\lib\lib-tk\tkSimpleDialog.py", line 69, in __init__
    self.wait_visibility() # window needs to be visible for the grab
  File "C:\Python25\lib\lib-tk\Tkinter.py", line 415, in wait_visibility
    self.tk.call('tkwait', 'visibility', window._w)
TclError: window ".85342728" was deleted before its visibility changed

Alan Gauld wrote:

"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


--
           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)


                Life is one damn thing after another."
                     -- Mark Twain 
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to