R
rajendra
Hello All,
Please find my small script.
use Tk;
$main=MainWindow->new;
$main->Button(-text => "Click",-command => \&disp)->pack(-side =>'left');
$text1=$main->Text(-width => 40 ,-height => 2)->pack;
$text1->bind('<Enter>',\&disp);
$main->after(500,sub{$main->attributes(-topmost=> 1)});
# this works on windows
MainLoop;
sub disp
{
$text1->insert('end',"Hello");
}
What should I add for this script to bring the window that gets generated
by
this script to foreground even if I change my focus?..
Please find my small script.
use Tk;
$main=MainWindow->new;
$main->Button(-text => "Click",-command => \&disp)->pack(-side =>'left');
$text1=$main->Text(-width => 40 ,-height => 2)->pack;
$text1->bind('<Enter>',\&disp);
$main->after(500,sub{$main->attributes(-topmost=> 1)});
# this works on windows
MainLoop;
sub disp
{
$text1->insert('end',"Hello");
}
What should I add for this script to bring the window that gets generated
by
this script to foreground even if I change my focus?..