[guest - Thu Jan 29 14:40:23 2004]:
Show quoted text> When creating an executable using pp --gui, when executed a TK window
> generated by my script is opened, but it is not the
> active/foreground window, it appears behind other windows open on
> the screen. If I use pp without the '--gui' option, the window
> opens as expected as the active, forground window.
Able to reproduce with this code:
use Tk;
$top = MainWindow->new();
$top->title ("Simple");
$l = $top->Label(text => 'hello',
anchor => 'n',
relief => 'groove',
width => 10, height => 3);
$l->pack();
MainLoop();
Compiled with:
C:\Documents and Settings\Patrick\Desktop\devel>pp -o tktest2.exe
tktest2.pl
C:\Documents and Settings\Patrick\Desktop\devel>pp --gui -o
tktest2ng.exe tktest2.pl
When executing tktest2.exe the window appears as the active window
When executing tktest2ng.exe the window appears but not active.