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/


Reply via email to