in reply to Re: perlTk opening new window
in thread perlTk opening new window

Hey Marshall, Here is something I tried
#!/usr/bin/perl use strict; use warnings; use Tk; my $win = new MainWindow; my $b1 = $win -> Button (-text=>"next", -command=>\&nextwin) -> pack() +; sub nextwin { my $win2 = $win->Toplevel(); my $b2 = $win2 -> Button (-text=>"quit", -command=>sub { exit }) -> pa +ck(); } MainLoop;
well by this method I still have 2 windows on screen