Skip Menu |

This queue is for tickets about the Tk CPAN distribution.

Report information
The Basics
Id: 7626
Status: open
Priority: 0/
Queue: Tk

People
Owner: SREZIC [...] cpan.org
Requestors: ThomasKratz [...] web.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 804.027
Fixed in: (no value)



Subject: Tk::ErrorDialog, no Dialog on win32
perl 5.8.4 custom built (non AS) or AS perl 5.6 / 5.8 Tk 804.027 Tk::ErrorDialog 4.007 (from 804.027) Description: The ErrorDialog doesn't appear. a script to show the error: #!perl -w use strict; use Tk; use Tk::ErrorDialog; my $mw = new MainWindow(); sub go { die "screaming"; } $mw->Button(-text => 'Go', -command => \&go)->pack; MainLoop; This produces: Background Error: window ".errordialog.dialog" was deleted before its visibility changed at C:/progs/perl/site/lib/Tk/Widget.pm line 926. The cause seems to be that the toplevel is withdrawn and needs a deiconify to be handled correctly under win32. A workaround is attached, but doesn't handle the trace window correctly. It will allways be displayed (still better than never :-) Thomas
Download Tk_ErrorDialog_patch
application/octet-stream 379b

Message body not shown because it is not plain text.

On Mon Sep 13 07:55:30 2004, TOMK wrote: Show quoted text
> perl 5.8.4 custom built (non AS) > or > AS perl 5.6 / 5.8 > > Tk 804.027 > Tk::ErrorDialog 4.007 (from 804.027) > > Description: The ErrorDialog doesn't appear. > > a script to show the error: > > #!perl -w > use strict; > use Tk; > use Tk::ErrorDialog; > my $mw = new MainWindow(); > sub go { > die "screaming"; > } > $mw->Button(-text => 'Go', -command => \&go)->pack; > MainLoop; > > This produces: > > Background Error: window ".errordialog.dialog" was deleted before its > visibility > changed at C:/progs/perl/site/lib/Tk/Widget.pm line 926. > > > The cause seems to be that the toplevel is withdrawn and needs a > deiconify to be handled correctly under win32. > A workaround is attached, but doesn't handle the trace window > correctly. It will allways be displayed (still better than never :-) > > Thomas
I can confirm the error with Strawberry Perl 5.8.8 and Tk 804.027_501 under Windows, but not under Unix/X11 systems. Regards, Slaven