Re: wish main window...



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




.



Relevant Pages

  • Re: Which station is this in the picture
    ... Its an Anglia 86, ... Vents looked like a window at first glance. ...
    (uk.railway)
  • Re: Refresh Problem
    ... BROWSE window but I think you are on the right track. ... UPDATE message is received and I am not seeing what I expected. ... sure it got written before the receiving workstation tried to query it. ... What's your SET REFRESH setting? ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Opening files in General Documents
    ... -Click on Advanced button and uncheck the "Browse in same window" box. ... Why was there no password prompt on the workstation while there was ... When I click on a Word file, the file is opened up inside ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Refresh Problem
    ... Locking/Unlocking Workstation: ... Set the database field RWUser to the user's ID for locking, ... window does not update every time. ... refresh does what it is supposed to do. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: XP Pro running DOS program
    ... >I have 3 computers running windows xp pro, one is acting as a server the ... > other 2 systems as the workstation. ... > workstations can also run off the same data base. ... Workstation 2 will go from window to full screen ...
    (microsoft.public.windowsxp.help_and_support)