On Wed Dec 10 20:45:13 2008, james.sarasin@gmail.com wrote:
Show quoted text> I have the same bug as this except it's on a Windows system.
>
>
http://rt.cpan.org/Public/Bug/Display.html?id=40534
>
> I get:
> C:\Perl\site\lib\vptk>perl vptk_w.pl
> Can't call method "Subwidget" on an undefined value at
> C:/Perl/site/lib/Tk/Widget.pm line 779.
>
> I am running
> ActivePerl 5.10.0 Build 1004
> TK 804.028
Well, the solution is primitive: apply the following patch & enjoy till
official release of next version.
--- vptk_w/EditorServices.pm 2006-12-11 16:58:57.000000000 +0200
+++ vptk_w/EditorServices_fixed.pm 2009-10-22 20:04:30.000000000 +0200
@@ -28,7 +28,11 @@
$mwPalette = $mw->Palette;
my %new = (background=>$bg_color,foreground=>$fg_color);
- $mw->RecolorTree(\%new);
+ # function available for Perl 5.08 - not available for 5.10 !!!
+ if($] <= 5.008008)
+ {
+ $mw->RecolorTree(\%new);
+ }
# Save the options in the global variable Tk::Palette, for use the
# next time we change the options.
foreach my $option (keys %new)