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

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Using perl 5.10, I'm trying to run the 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;

gets ---

Can't locate object method "Construct" via package "Tk::Widget"
at C:/Perl/site/lib/Tk/ line 13.
Compilation failed in require at (eval 15) line 3.
  ...propagated at C:/Perl/lib/ 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';


Site Timeline