window->close/hide/kill/destroy?



Hi, all.
Ok, i have one sub:

sub click_for_something {
        my $win1=window2->new();
        $win1->show;
}

It works ok. But HOW to close this window
from another sub? For example:

sub click_for_something {
        my $win1=window2->new();
        $win1->show;
}

sub click_for_anothersomething {
        $win1->hide;                    # Causes ERROR: what the $win1 is?
        my $win1->hide;                 # Causes nothing...
        print STDOUT "Bla-bla-bla";     # At least this is not work too :(
}

So the question is: perhaps my way to show the windows is WRONG at
least? Thank you.

--
Bogdan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]