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!

Kill window after some time

Status
Not open for further replies.

timgerr

IS-IT--Management
Jan 22, 2004
364
US
I know that this is a tcl/tk room and I am using perl but the answer should be the same. I want to kill a window after displaying it for let's say 10 seconds with out any user intervention. Here is a perl script that will display a window;
Code:
use Tk;
my $mw = MainWindow->new;
$mw->title("Hello World");
MainLoop;

how can I kill the window $mv after 10 seconds. I dont care what the scritpting language is, I just want to see some code.

Thanks,
Timgerr

-How important does a person have to be before they are considered assassinated instead of just murdered?
-Need more cow bell!!!

 
something like:
after 10000 destroy $mw ?

_________________
Bob Rashkin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top