$component_dialog->destroy -command. , , , .
withdraw , , , . . Dialog DialogBox , . , , , .
MainLoop. GUI_OPEN_NETLIST , MainLoop , MainLoop, , .
, , , .
use strict;
use warnings;
my $main = new MainWindow;
my $sidebar = $main->Frame(-relief => "raised",
-borderwidth => 2)
->pack (-side=>"left" ,
-anchor => "nw",
-fill => "y");
my $Button1 = $sidebar -> Button (-text=>"Open\nNetlist",
-command=> \&GUI_OPEN_NETLIST)
->pack(-fill=>"x");
my $component_dialog = $main->Dialog( -buttons => [ 'Close' ], );
MainLoop;
sub GUI_OPEN_NETLIST
{
$component_dialog->Show();
}
, , MainWindow Toplevel, MainWindow.
A Toplevel , MainWindow , MainWindow MainWindow.