subclass, custom widget



How do I properly create a custom widget? What I need to do is create a
HBox with a label, an entry, and a button, that I can use like this:

use Things;

my $vbox = Gtk2::VBox->new(0,6);

my $thing = SomeThing->new();

$vbox->add($thing);

....

Where SomeThing is the custom widget. 

How do I get SomeThing to inherit the properties necessary to treat it
as a container?

-- 
Jim Donoghue
Smithy Co.
(734) 913-6700




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]