Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wish in windows!

Status
Not open for further replies.

RajVerma

Programmer
Jun 11, 2003
62
DE
hi all,

I'm trying to run a .tk file from the tkcon 2.4 version in windows. I'm getting two windows, one is that I desire according to the code and the other is a default one. Is there any way to get rid of this default widget when I run "wish filename.tk" from the tkcon console?

thanx in advance.

Raj.
 
If I understand well the code opens a toplevel window and you don't want to see the original main window. If I'm true you just need:
Code:
  wm withdraw .
From Tk manual:
wm withdraw window
Arranges for window to be withdrawn from the screen. This causes the window to be unmapped and forgotten about by the window manager. If the window has never been mapped, then this command causes the window to be mapped in the withdrawn state. Not all window managers appear to know how to handle windows that are mapped in the withdrawn state. Note: it sometimes seems to be necessary to withdraw a window and then re-map it (e.g. with wm deiconify) to get some window managers to pay attention to changes in window attributes such as group.


More on wm at:
HTH

ulis
 
ulis is correct.

The wish console always pops up another window
that gets populated with widgets if you type them in on the console cammand line.

You close it with
wm withraw .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top