Irfan Sayed wrote: > please find the attached . > what i am looking for is, need to destroy the window $mw1 once the text > entered in scrolled text window > i just want to destroy $mw1 and not entire application > > > please suggest . > > > regards, > irfan > > > > ________________________________ > From: Shlomi Fish <shlo...@shlomifish.org> > To: Perl Beginners <beginners@perl.org> > Sent: Tuesday, September 4, 2012 6:07 PM > Subject: Re: destroy widget > > Hi Irfan, > > On Tue, 4 Sep 2012 05:01:11 -0700 (PDT) > Irfan Sayed <irfan_sayed2...@yahoo.com> wrote: > >> hi, >> >> i have following code to get the user input : >> >> $mw1 = MainWindow->new; >> Â Â $mw1->geometry( "200x100" ); >> Â Â $mw1->title("Client Workspace"); >> Â Â $mw1->Label( >> Â Â Â Â Â Â Â Â Â Â -text => "Enter the Perforce client name:" >> Â Â Â Â Â Â )->pack(-anchor=>'center'); >> Â Â Â Â Â Â > >
You're looking for the ->withdraw()method. # Hide main window $mw1->withdraw(); ... ... # Sometime later in the app show main window again $mw1->deiconify(); $mw1->raise(); ---- Ron Bergin -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/