Re: wish main window...
- From: "Jeff Godfrey" <jeff_godfrey@xxxxxxxxx>
- Date: Thu, 06 Oct 2005 22:31:39 GMT
><sunos.x86@xxxxxxxxx> wrote in message
>news:1128636334.837969.284120@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>hello all...
>I'm new to tk, and i need a little application, that just ask to the
>user the name of the workstation. I have the code that follows, but
>when i did run the code, two windows are showed. One of then is
>blank.
>I want just the window that asks the question. :)
> Thanks.
[ ... code snipped ]
First, a general comment... At first glance, you're code looks a bit
"complex" for the task you mention, but I haven't really examined it
much...
Now, your question.
When you run the wish interpreter, it creates its own toplevel window
named "." So, you can either use it for your application or you can
create your own toplevel(s). In the event that you don't want the
automatically generated window (as in your case), you can remove it
from the screen like this:
wm withdraw .
Jeff
.
- Follow-Ups:
- Re: wish main window...
- From: sunos.x86@xxxxxxxxx
- Re: wish main window...
- References:
- wish main window...
- From: sunos.x86@xxxxxxxxx
- wish main window...
- Prev by Date: wish main window...
- Next by Date: Re: windows XP Taskbar
- Previous by thread: wish main window...
- Next by thread: Re: wish main window...
- Index(es):
Relevant Pages
|
|