perlplayer has asked for the wisdom of the Perl Monks concerning the following question:
but i getting the following error while pressing the button even though i have Tk-804.028_501 installed along with my perluse Tk; use strict; my $mw = MainWindow->new; $mw->geometry("500x200"); $mw->title("All-In-One Test"); my $but=$mw->Button(-text=>"press",-command=>"\&newwindow")->pack(); sub newwindow(){ my $popup=$mw->Toplevel()->pack(); } MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl/Tk error
by zentara (Cardinal) on Dec 03, 2008 at 13:29 UTC | |
by perlplayer (Sexton) on Dec 04, 2008 at 04:18 UTC | |
|
Re: perl/Tk error
by hominid (Priest) on Dec 03, 2008 at 13:32 UTC |