Title: Signature.html

ALAN GAULD wrote:
> That change got the same result. Maybe this will make it all clearer.

> When the prompt appears, there is a small window showing on the
> screen, 2x2",

Yes, that's the root window that Python expects you to put your GUI into.
The master that you pas to your GUI wFrames.

It didn't show for me with the code I posted.
It was a bit hard to verify your code, since when I copied it, it had different indentation and I may not have assembled it properly. Was the only change to the code? See "nevertheless" comment below.
root = Tk()
DialogPrototype(root)

How are you running this? Are you launching it from Windows Explorer
or from a command line or from an IDE? I was just double clicking on the
file in explorer...
IDLE but always verifying with command prompt as the need arises. I seem to be into several programs at once, so having 3 or so command prompts open drives me a bit daffy. It seems easier to have 3 IDLE windows open. I never got clear on how to fill out a line in command line. Using tab doesn't work. F8 worked once, but never again. That would make it more attractive to just use command prompt for execution. Yes, I know I can back up to previous lines and modify them. Then too there is no way to copy things out of that window. Yes, I know I can back up likes and modify them.

> My guess is that dialog needs to be "connected" to that root window.

I suspect the problem is that you are trying to run a dialog as an application.
Dialogs are normally launched from another window. So normally that Tk
window would come up with the main app form, menus etc. Then from
there you would perform an action (button, menu etc) that would launch
the Dialog.

So we are kind of twisting the way Tkinter expects to be uased here.
But putting withdraw into the body method worked for me last night.
Actually, I think I'll go back to withdraw. It had been working for me. Nevertheless a solution
to all this is not important to me any longer. It's only a prototype, and I can live with a bit of nuttiness.
Eventually, I'll pull it all out and stick it into the application and all will be well, won't it? :-)

> IDLE forces a hang in the shell window, which requires effort to
> recover.

As I keep saying, don't use IDLE to run Tkinter apps. Despite the
supposed fixes it is not a reliable mechanism. Use ODLE as an editor
but run the app from Windows Explorer or a command line
I use both command prompt to verify IDLE results. They agreed.

BTW I just double checked and when I double click in Explorer on

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