For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > January 2008 > Tk::Browser, "Can't locate object method 'Construct'"









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Tk::Browser, "Can't locate object method 'Construct'"
~greg

2008-01-16, 4:01 am


Using perl 5.10, I'm trying to run the Tk::Browser.pm SYNOPSIS example.

I get a "Can't locate object method "Construct" via package "Tk::Widget" " error.


In more detail ---

use strict;
use warnings;
use Tk::Browser;
my $b = new Browser;
__END__

gets ---

Can't locate object method "Construct" via package "Tk::Widget"
at C:/Perl/site/lib/Tk/Frame.pm line 13.
Compilation failed in require at (eval 15) line 3.
...propagated at C:/Perl/lib/base.pm line 93.
--- etc

The "Construct" that can't be located for Tk::Widget
is being used like this ---

# Copyright (c) 1995-2003 Nick Ing-Simmons. All rights reserved.
# This program is free software; you can redistribute it and/or
# modify it under the same terms as Perl itself.
package Tk::Frame;
require Tk::Widget;
require Tk::Derived;
use AutoLoader;
use strict qw(vars);
use Carp;

use base qw(Tk::Derived Tk::Widget);

Construct Tk::Widget 'Frame';

etc...


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com